Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 112.2 kB / 17.74 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 187.1 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 51.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3268, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005508/0.3323, allocations: 4.302 MB / 405.7 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003181/0.3356, allocations: 1.387 MB / 407.1 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004633/0.3361, allocations: 15.94 kB / 407.1 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003881/0.3365, allocations: 114.8 kB / 407.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004747/0.337, allocations: 230 kB / 407.4 MB, free: 2.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.3381, allocations: 419.2 kB / 407.8 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009955/0.3391, allocations: 1.135 MB / 409 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003681/0.3395, allocations: 253.7 kB / 409.2 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005955/0.3401, allocations: 490.5 kB / 409.7 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005423/0.3406, allocations: 0.5176 MB / 410.2 MB, free: 4 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.3408, allocations: 92.05 kB / 410.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002919/0.3411, allocations: 147.8 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001952/0.3413, allocations: 219.3 kB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000361/0.3417, allocations: 450 kB / 411.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009799/0.3427, allocations: 1.064 MB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3427, allocations: 4 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3427, allocations: 0 / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.3427, allocations: 0 / 412.2 MB, free: 14.05 MB / 334.1 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.003265/0.346, allocations: 1.279 MB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.3461, allocations: 19.97 kB / 413.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002492/0.3463, allocations: 99.88 kB / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006485/0.347, allocations: 445.6 kB / 414 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.675e-05/0.347, allocations: 50.38 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.3472, allocations: 72.38 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.3489, allocations: 0.8077 MB / 414.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.49e-05/0.3489, allocations: 7.906 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.777e-05/0.349, allocations: 28 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.349, allocations: 16 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.3511, allocations: 0.8744 MB / 415.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004481/0.3556, allocations: 2.369 MB / 418.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.3571, allocations: 0.7073 MB / 418.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000971/0.3581, allocations: 478.4 kB / 419.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.246e-05/0.3582, allocations: 16.98 kB / 419.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00118/0.3594, allocations: 0.5477 MB / 420 MB, free: 6.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.896e-06/0.3594, allocations: 0 / 420 MB, free: 6.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01179/0.3712, allocations: 4.216 MB / 424.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.3713, allocations: 64.41 kB / 424.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005216/0.3718, allocations: 393.9 kB / 424.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.986e-05/0.3719, allocations: 49.7 kB / 424.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.3722, allocations: 276.9 kB / 425 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002967/0.3725, allocations: 366.8 kB / 425.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003082/0.3728, allocations: 182.8 kB / 425.5 MB, free: 316 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.373, allocations: 374.8 kB / 425.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.374, allocations: 442.4 kB / 426.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.3753, allocations: 0.5305 MB / 426.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/0.377, allocations: 0.783 MB / 427.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.377, allocations: 0 / 427.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003181/0.3802, allocations: 1.346 MB / 429 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.3802, allocations: 4 kB / 429 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.3802, allocations: 7.922 kB / 429 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/0.3814, allocations: 0.6504 MB / 429.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000881/0.3823, allocations: 203.7 kB / 429.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004365/0.3867, allocations: 3.43 MB / 433.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.3879, allocations: 175.9 kB / 433.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.758e-05/0.388, allocations: 39.98 kB / 433.5 MB, free: 8.09 MB / 350.1 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,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003924/0.3884, allocations: 225.6 kB / 433.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.3885, allocations: 71.16 kB / 433.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002141/0.3887, allocations: 103 kB / 433.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.3887, allocations: 16 kB / 433.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.3888, allocations: 3.984 kB / 433.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.3888, allocations: 3.984 kB / 433.9 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004804/0.3936, allocations: 2.487 MB / 436.4 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.3936, allocations: 4 kB / 436.4 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007912/0.3944, allocations: 183.9 kB / 436.5 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.3955, allocations: 0.6152 MB / 437.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.947e-05/0.3956, allocations: 39.95 kB / 437.2 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003993/0.3996, allocations: 3.226 MB / 440.4 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3996, allocations: 4.188 kB / 440.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004108/0.4037, allocations: 1.837 MB / 442.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004498/0.4042, allocations: 228.1 kB / 442.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.4043, allocations: 39.98 kB / 442.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.4058, allocations: 207.7 kB / 442.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000898/0.4067, allocations: 376.4 kB / 443.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.102e-05/0.4068, allocations: 51.95 kB / 443.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003014/0.4071, allocations: 267.1 kB / 443.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4071, allocations: 0 / 443.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008221/0.4079, allocations: 248 kB / 443.6 MB, free: 13.5 MB / 366.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003449/0.4083, allocations: 174.3 kB / 443.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002683/0.4109, allocations: 1.2 MB / 445 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.411, allocations: 0 / 445 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00143/0.4124, allocations: 0.7312 MB / 445.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009145/0.4133, allocations: 138.9 kB / 445.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003934/0.4173, allocations: 1.981 MB / 447.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000758/0.418, allocations: 0.9322 MB / 448.8 MB, free: 8.246 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.4183, allocations: 71.42 kB / 448.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4183, allocations: 0 / 448.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of Templates: time 0.02573/0.444, allocations: 17.53 MB / 466.4 MB, free: 6.621 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches