Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.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.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002873/0.002872, allocations: 189.2 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.603/3.603, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001734/0.001734, allocations: 94.86 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006416/0.0006419, allocations: 8 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1605, allocations: 47.59 MB / 374.5 MB, free: 15.42 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.009971/0.1706, allocations: 3.488 MB / 378 MB, free: 11.9 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006048/0.1767, allocations: 1.311 MB / 379.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001061/0.1778, allocations: 8 kB / 379.4 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005499/0.1784, allocations: 83.36 kB / 379.4 MB, free: 10.5 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001809/0.1803, allocations: 251.2 kB / 379.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002757/0.1831, allocations: 327.3 kB / 380 MB, free: 9.934 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002939/0.1861, allocations: 0.704 MB / 380.7 MB, free: 9.227 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008886/0.1871, allocations: 195.1 kB / 380.9 MB, free: 9.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001613/0.1887, allocations: 406.7 kB / 381.3 MB, free: 8.621 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001762/0.1906, allocations: 462.3 kB / 381.7 MB, free: 8.168 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005117/0.1911, allocations: 48 kB / 381.8 MB, free: 8.121 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007889/0.192, allocations: 91.95 kB / 381.9 MB, free: 8.031 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004443/0.1924, allocations: 175.3 kB / 382.1 MB, free: 7.859 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005265/0.193, allocations: 153.3 kB / 382.2 MB, free: 7.703 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002571/0.1956, allocations: 0.7481 MB / 382.9 MB, free: 6.953 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1957, allocations: 0 / 382.9 MB, free: 6.953 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.79e-06/0.1957, allocations: 0 / 382.9 MB, free: 6.953 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.67e-05/0.1958, allocations: 4 kB / 383 MB, free: 6.949 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.008237/0.204, allocations: 1.221 MB / 384.2 MB, free: 5.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.662e-05/0.2041, allocations: 8.031 kB / 384.2 MB, free: 5.672 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008088/0.205, allocations: 86.97 kB / 384.3 MB, free: 5.586 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001879/0.2069, allocations: 428.7 kB / 384.7 MB, free: 5.129 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.2071, allocations: 50 kB / 384.7 MB, free: 5.078 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004557/0.2076, allocations: 79.89 kB / 384.8 MB, free: 5 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005301/0.2129, allocations: 0.8115 MB / 385.6 MB, free: 4.184 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.375e-05/0.2131, allocations: 4 kB / 385.6 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002265/0.2133, allocations: 27.94 kB / 385.7 MB, free: 4.152 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.926e-05/0.2134, allocations: 16 kB / 385.7 MB, free: 4.137 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006515/0.2199, allocations: 0.8978 MB / 386.6 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01349/0.2335, allocations: 2.451 MB / 389 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4042/0.6378, allocations: 0.7259 MB / 389.7 MB, free: 20.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002662/0.6382, allocations: 11.84 kB / 389.8 MB, free: 20.29 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004154/0.6423, allocations: 0.5607 MB / 390.3 MB, free: 20.23 MB / 282.7 MB Notification: Performance of pre-optimization done (n=86): time 8.737e-06/0.6424, allocations: 1.719 kB / 390.3 MB, free: 20.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=106): time 0.03612/0.6786, allocations: 4.467 MB / 394.8 MB, free: 18.79 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.447e-05/0.6787, allocations: 64.16 kB / 394.8 MB, free: 18.72 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/0.68, allocations: 386.7 kB / 395.2 MB, free: 18.53 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004986/0.6805, allocations: 57 kB / 395.3 MB, free: 18.48 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004159/0.681, allocations: 316.4 kB / 395.6 MB, free: 18.2 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009982/0.682, allocations: 361.7 kB / 395.9 MB, free: 17.93 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001789/0.6823, allocations: 21.53 kB / 396 MB, free: 17.92 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.6825, allocations: 348.4 kB / 396.3 MB, free: 17.59 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003338/0.6859, allocations: 456.3 kB / 396.8 MB, free: 17.43 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003495/0.6895, allocations: 0.5365 MB / 397.3 MB, free: 17.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002958/0.6925, allocations: 398.3 kB / 397.7 MB, free: 17.04 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.727e-05/0.6926, allocations: 3.953 kB / 397.7 MB, free: 17.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.01002/0.7027, allocations: 1.339 MB / 399 MB, free: 16.54 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.888e-05/0.7028, allocations: 5.844 kB / 399 MB, free: 16.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.7028, allocations: 3.219 kB / 399 MB, free: 16.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003636/0.7065, allocations: 0.6509 MB / 399.7 MB, free: 16.33 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002752/0.7093, allocations: 207.9 kB / 399.9 MB, free: 16.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01063/0.72, allocations: 3.306 MB / 403.2 MB, free: 13.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004084/0.7242, allocations: 241.8 kB / 403.4 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000458/0.7247, allocations: 35.25 kB / 403.5 MB, free: 13.5 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001051/0.7258, allocations: 227.7 kB / 403.7 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004084/0.7262, allocations: 70.72 kB / 403.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004368/0.7267, allocations: 105.4 kB / 403.9 MB, free: 13.19 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-05/0.7267, allocations: 9.906 kB / 403.9 MB, free: 13.19 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.176e-05/0.7268, allocations: 5.156 kB / 403.9 MB, free: 13.19 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.894e-05/0.7268, allocations: 5.297 kB / 403.9 MB, free: 13.19 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01442/0.7413, allocations: 2.555 MB / 406.4 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.202e-05/0.7414, allocations: 6.969 kB / 406.4 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002471/0.7439, allocations: 186.5 kB / 406.6 MB, free: 11.92 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003209/0.7472, allocations: 0.6208 MB / 407.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004052/0.7476, allocations: 36.64 kB / 407.3 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008521/0.7562, allocations: 3.145 MB / 410.4 MB, free: 9.051 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/0.7563, allocations: 1.406 kB / 410.4 MB, free: 9.051 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/0.7681, allocations: 1.973 MB / 412.4 MB, free: 8.016 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.7694, allocations: 229.8 kB / 412.6 MB, free: 7.809 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004532/0.7699, allocations: 34.58 kB / 412.6 MB, free: 7.785 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004148/0.7741, allocations: 277.7 kB / 412.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002727/0.7769, allocations: 421.6 kB / 413.3 MB, free: 7.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004103/0.7773, allocations: 47.73 kB / 413.4 MB, free: 7.387 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007285/0.7781, allocations: 263.1 kB / 413.6 MB, free: 7.227 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.7781, allocations: 0 / 413.6 MB, free: 7.227 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00224/0.7804, allocations: 250.6 kB / 413.9 MB, free: 7.191 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007072/0.7812, allocations: 166.7 kB / 414 MB, free: 7.059 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.007025/0.7882, allocations: 1.202 MB / 415.2 MB, free: 6.395 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/0.7883, allocations: 0 / 415.2 MB, free: 6.395 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004301/0.7926, allocations: 0.7531 MB / 416 MB, free: 5.629 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/0.7947, allocations: 113 kB / 416.1 MB, free: 5.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.8053, allocations: 2.4 MB / 418.5 MB, free: 3.066 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000749/0.8061, allocations: 0.9517 MB / 419.5 MB, free: 2.086 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000667/0.8068, allocations: 67.41 kB / 419.5 MB, free: 2.02 MB / 282.7 MB Notification: Performance of SimCode: time 2.565e-06/0.8068, allocations: 0 / 419.5 MB, free: 2.02 MB / 282.7 MB Notification: Performance of Templates: time 0.06001/0.8669, allocations: 16.64 MB / 436.2 MB, free: 1.336 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches