Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00144/0.00144, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001662/0.001662, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 64.09 kB / 308.4 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1231, allocations: 50.53 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.007393/0.1305, allocations: 4.467 MB / 363.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004227/0.1348, allocations: 1.578 MB / 364.9 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006197/0.1355, allocations: 15.94 kB / 364.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005327/0.1361, allocations: 134.7 kB / 365.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008212/0.1369, allocations: 277.7 kB / 365.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.1382, allocations: 434 kB / 365.8 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001499/0.1397, allocations: 1.17 MB / 366.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005142/0.1402, allocations: 257.7 kB / 367.2 MB, free: 5.027 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008848/0.1411, allocations: 0.4907 MB / 367.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007675/0.1419, allocations: 0.5331 MB / 368.2 MB, free: 4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001843/0.1421, allocations: 96 kB / 368.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004174/0.1425, allocations: 168 kB / 368.5 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003046/0.1428, allocations: 235.3 kB / 368.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004942/0.1433, allocations: 469.8 kB / 369.2 MB, free: 3.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009696/0.1443, allocations: 1.121 MB / 370.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1443, allocations: 0 / 370.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1443, allocations: 0 / 370.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1444, allocations: 0 / 370.3 MB, free: 1.926 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002977/0.1473, allocations: 1.333 MB / 371.6 MB, free: 0.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1474, allocations: 8.031 kB / 371.6 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005022/0.1479, allocations: 115.9 kB / 371.7 MB, free: 432 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1834/0.3313, allocations: 458 kB / 372.2 MB, free: 19.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.3314, allocations: 56.84 kB / 372.2 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002894/0.3317, allocations: 73.39 kB / 372.3 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.334, allocations: 0.803 MB / 373.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.578e-05/0.334, allocations: 5.844 kB / 373.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.3341, allocations: 28.22 kB / 373.2 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.782e-05/0.3342, allocations: 17.86 kB / 373.2 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002259/0.3365, allocations: 0.8403 MB / 374 MB, free: 19.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005189/0.3417, allocations: 2.407 MB / 376.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.3433, allocations: 0.7294 MB / 377.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009462/0.3442, allocations: 457.1 kB / 377.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.718e-05/0.3443, allocations: 15.62 kB / 377.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/0.3456, allocations: 0.5426 MB / 378.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.796e-06/0.3456, allocations: 3.938 kB / 378.2 MB, free: 17.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01092/0.3565, allocations: 4.156 MB / 382.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.3566, allocations: 63.53 kB / 382.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005714/0.3572, allocations: 418.2 kB / 382.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.701e-05/0.3573, allocations: 57.03 kB / 382.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.3575, allocations: 282.4 kB / 383.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002514/0.3577, allocations: 378.5 kB / 383.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003198/0.3581, allocations: 185.9 kB / 383.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.3582, allocations: 376.5 kB / 384 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009767/0.3591, allocations: 421.1 kB / 384.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.3602, allocations: 0.5055 MB / 384.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.3618, allocations: 0.7505 MB / 385.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3618, allocations: 0 / 385.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003006/0.3648, allocations: 1.287 MB / 387 MB, free: 13.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.3649, allocations: 5.953 kB / 387 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.3649, allocations: 4.953 kB / 387 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/0.366, allocations: 0.5363 MB / 387.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007976/0.3668, allocations: 204.3 kB / 387.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003529/0.3704, allocations: 3.408 MB / 391.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.3716, allocations: 164.2 kB / 391.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.3717, allocations: 41.11 kB / 391.3 MB, free: 10.03 MB / 302.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,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004085/0.3721, allocations: 229 kB / 391.6 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.3723, allocations: 72.25 kB / 391.6 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001911/0.3725, allocations: 109.7 kB / 391.7 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.3725, allocations: 10.66 kB / 391.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.3725, allocations: 1.031 kB / 391.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.3725, allocations: 6.625 kB / 391.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004486/0.377, allocations: 2.484 MB / 394.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/0.3771, allocations: 6.422 kB / 394.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000736/0.3778, allocations: 177.1 kB / 394.4 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000879/0.3787, allocations: 0.4992 MB / 394.9 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.117e-05/0.3788, allocations: 37.3 kB / 395 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003229/0.382, allocations: 3.181 MB / 398.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.382, allocations: 3.188 kB / 398.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003363/0.3854, allocations: 1.77 MB / 399.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003412/0.3858, allocations: 239.2 kB / 400.1 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.3859, allocations: 31.78 kB / 400.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.3871, allocations: 206 kB / 400.4 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008122/0.3879, allocations: 381 kB / 400.8 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.453e-05/0.388, allocations: 42.33 kB / 400.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003616/0.3884, allocations: 289.2 kB / 401.1 MB, free: 3 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3884, allocations: 0 / 401.1 MB, free: 3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009553/0.3893, allocations: 243.3 kB / 401.3 MB, free: 2.926 MB / 302.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 (90): * Single equations (assignments): 87 * 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,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000897/0.3902, allocations: 404.5 kB / 401.7 MB, free: 2.656 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002126/0.3924, allocations: 1.157 MB / 402.9 MB, free: 1.496 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3924, allocations: 4 kB / 402.9 MB, free: 1.492 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.3937, allocations: 0.7664 MB / 403.6 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000793/0.3945, allocations: 158.5 kB / 403.8 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003632/0.3982, allocations: 1.997 MB / 405.8 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004918/0.3987, allocations: 0.9441 MB / 406.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003994/0.3991, allocations: 85.69 kB / 406.8 MB, free: 13.47 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.3993, allocations: 75.34 kB / 406.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3993, allocations: 4 kB / 406.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of Templates: time 0.02875/0.4281, allocations: 17.55 MB / 424.4 MB, free: 11.93 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches