Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002938/0.002945, allocations: 186.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.49/3.49, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00182/0.00182, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006674/0.0006676, allocations: 8 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1542, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.005018/0.1593, allocations: 1.948 MB / 376.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.1616, allocations: 0.5039 MB / 377 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003749/0.1621, allocations: 4 kB / 377 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002599/0.1623, allocations: 35.69 kB / 377 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005126/0.1629, allocations: 95.73 kB / 377.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009928/0.1639, allocations: 143.7 kB / 377.3 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001107/0.1651, allocations: 295.9 kB / 377.6 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000326/0.1654, allocations: 48.7 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006006/0.1661, allocations: 183.4 kB / 377.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007296/0.1668, allocations: 211.2 kB / 378 MB, free: 11.97 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.167, allocations: 24 kB / 378 MB, free: 11.95 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003585/0.1674, allocations: 59.97 kB / 378.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002073/0.1676, allocations: 79.7 kB / 378.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000185/0.1678, allocations: 73.58 kB / 378.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000885/0.1687, allocations: 323.4 kB / 378.5 MB, free: 11.42 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1688, allocations: 0 / 378.5 MB, free: 11.42 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1688, allocations: 0 / 378.5 MB, free: 11.42 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.1688, allocations: 0 / 378.5 MB, free: 11.42 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.002815/0.1716, allocations: 0.6236 MB / 379.2 MB, free: 10.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.554e-05/0.1718, allocations: 8.031 kB / 379.2 MB, free: 10.74 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002971/0.1721, allocations: 31.62 kB / 379.2 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009315/0.173, allocations: 275.5 kB / 379.5 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.221e-05/0.1732, allocations: 28.45 kB / 379.5 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001806/0.1734, allocations: 39.94 kB / 379.5 MB, free: 10.33 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.1754, allocations: 372.7 kB / 379.9 MB, free: 9.957 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.879e-05/0.1755, allocations: 3.906 kB / 379.9 MB, free: 9.953 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.1756, allocations: 12 kB / 379.9 MB, free: 9.941 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.1757, allocations: 4 kB / 379.9 MB, free: 9.938 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002348/0.178, allocations: 406 kB / 380.3 MB, free: 9.543 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00538/0.1835, allocations: 1.127 MB / 381.4 MB, free: 8.336 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.1851, allocations: 295.5 kB / 381.7 MB, free: 8.039 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/0.1852, allocations: 8.312 kB / 381.7 MB, free: 8.031 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.188e-05/0.1853, allocations: 43.14 kB / 381.8 MB, free: 7.98 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 5.24e-06/0.1854, allocations: 4 kB / 381.8 MB, free: 7.977 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.01226/0.1976, allocations: 2.104 MB / 383.9 MB, free: 5.734 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/0.1978, allocations: 59.36 kB / 383.9 MB, free: 5.664 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005645/0.1984, allocations: 236.9 kB / 384.2 MB, free: 5.422 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001871/0.1986, allocations: 37.7 kB / 384.2 MB, free: 5.379 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000247/0.1988, allocations: 215.2 kB / 384.4 MB, free: 5.164 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000352/0.1992, allocations: 157.9 kB / 384.6 MB, free: 5.008 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-05/0.1993, allocations: 8 kB / 384.6 MB, free: 5 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002336/0.1995, allocations: 330.8 kB / 384.9 MB, free: 4.668 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/0.2007, allocations: 217 kB / 385.1 MB, free: 4.457 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.2021, allocations: 276.8 kB / 385.4 MB, free: 4.16 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.2032, allocations: 172.8 kB / 385.6 MB, free: 3.992 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.725e-05/0.2032, allocations: 4 kB / 385.6 MB, free: 3.988 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.004096/0.2073, allocations: 0.6808 MB / 386.2 MB, free: 3.293 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.2075, allocations: 11.94 kB / 386.3 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.2075, allocations: 0 / 386.3 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00238/0.2099, allocations: 0.4897 MB / 386.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008281/0.2108, allocations: 71.91 kB / 386.8 MB, free: 2.715 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003279/0.2141, allocations: 1.401 MB / 388.2 MB, free: 1.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.2156, allocations: 88.05 kB / 388.3 MB, free: 1.176 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/0.2158, allocations: 23.98 kB / 388.3 MB, free: 1.152 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005442/0.2163, allocations: 162 kB / 388.5 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/0.2166, allocations: 31.58 kB / 388.5 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002137/0.2168, allocations: 51.3 kB / 388.6 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/0.2168, allocations: 4 kB / 388.6 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.2169, allocations: 0 / 388.6 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.2169, allocations: 3.984 kB / 388.6 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.402/0.6189, allocations: 1.374 MB / 389.9 MB, free: 20.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.619, allocations: 4.656 kB / 390 MB, free: 20.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008363/0.6198, allocations: 61.62 kB / 390 MB, free: 20.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002268/0.6221, allocations: 462.7 kB / 390.5 MB, free: 20.95 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001765/0.6224, allocations: 20.08 kB / 390.5 MB, free: 20.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002647/0.6251, allocations: 1.34 MB / 391.8 MB, free: 19.91 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-05/0.6251, allocations: 7.578 kB / 391.8 MB, free: 19.91 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00504/0.6302, allocations: 1.009 MB / 392.8 MB, free: 19.63 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000518/0.6308, allocations: 150.6 kB / 393 MB, free: 19.54 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001914/0.631, allocations: 19.42 kB / 393 MB, free: 19.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008915/0.6319, allocations: 53.03 kB / 393.1 MB, free: 19.53 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006043/0.6326, allocations: 99.23 kB / 393.2 MB, free: 19.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001232/0.6327, allocations: 20.62 kB / 393.2 MB, free: 19.52 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003791/0.6331, allocations: 169.8 kB / 393.3 MB, free: 19.42 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.6332, allocations: 0 / 393.3 MB, free: 19.42 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001221/0.6344, allocations: 106.4 kB / 393.4 MB, free: 19.4 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004836/0.635, allocations: 140 kB / 393.6 MB, free: 19.3 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002834/0.6378, allocations: 0.5123 MB / 394.1 MB, free: 19.13 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/0.6379, allocations: 4.875 kB / 394.1 MB, free: 19.13 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001645/0.6395, allocations: 280.8 kB / 394.4 MB, free: 19.04 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002436/0.642, allocations: 39.48 kB / 394.4 MB, free: 19.03 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006074/0.6482, allocations: 1.215 MB / 395.6 MB, free: 18.31 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005018/0.6488, allocations: 0.7843 MB / 396.4 MB, free: 17.61 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000269/0.6491, allocations: 33.08 kB / 396.4 MB, free: 17.6 MB / 282.7 MB Notification: Performance of SimCode: time 1.884e-06/0.6491, allocations: 0.9688 kB / 396.4 MB, free: 17.6 MB / 282.7 MB Notification: Performance of Templates: time 0.0267/0.6758, allocations: 6.38 MB / 402.8 MB, free: 15.94 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches