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.001472/0.001472, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001801/0.001801, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 56.14 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2342, allocations: 50.55 MB / 409.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005431/0.2396, allocations: 4.469 MB / 413.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.2421, allocations: 1.559 MB / 415.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002208/0.2424, allocations: 11.94 kB / 415.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003533/0.2427, allocations: 146.7 kB / 415.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004948/0.2432, allocations: 277.8 kB / 415.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007539/0.244, allocations: 422.9 kB / 416.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009253/0.2449, allocations: 1.178 MB / 417.3 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003617/0.2453, allocations: 257.7 kB / 417.5 MB, free: 9.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005908/0.2459, allocations: 0.5024 MB / 418 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000542/0.2465, allocations: 0.5293 MB / 418.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.2466, allocations: 92 kB / 418.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002711/0.2469, allocations: 164 kB / 418.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002679/0.2472, allocations: 243.2 kB / 419.1 MB, free: 7.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004097/0.2476, allocations: 465.8 kB / 419.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001001/0.2486, allocations: 1.123 MB / 420.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2486, allocations: 0 / 420.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.367e-06/0.2486, allocations: 0 / 420.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.2486, allocations: 3.938 kB / 420.6 MB, free: 6.137 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.00294/0.2516, allocations: 1.322 MB / 422 MB, free: 4.762 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.2516, allocations: 12.03 kB / 422 MB, free: 4.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000504/0.2521, allocations: 115.9 kB / 422.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006942/0.2528, allocations: 469.5 kB / 422.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.327e-05/0.2529, allocations: 62.38 kB / 422.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/0.253, allocations: 80.03 kB / 422.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/0.2546, allocations: 0.7959 MB / 423.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.926e-05/0.2546, allocations: 7.906 kB / 423.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.046e-05/0.2547, allocations: 27.98 kB / 423.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.2548, allocations: 20 kB / 423.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.2567, allocations: 0.8393 MB / 424.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004092/0.2608, allocations: 2.404 MB / 426.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.2623, allocations: 0.7282 MB / 427.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009218/0.2632, allocations: 460.3 kB / 428 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.299e-05/0.2633, allocations: 9 kB / 428 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001094/0.2644, allocations: 0.5399 MB / 428.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.295e-06/0.2644, allocations: 3.938 kB / 428.5 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01072/0.2752, allocations: 4.169 MB / 432.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.2753, allocations: 68.34 kB / 432.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005154/0.2758, allocations: 417.9 kB / 433.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.671e-05/0.2759, allocations: 57.69 kB / 433.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.2761, allocations: 277 kB / 433.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002951/0.2764, allocations: 382.7 kB / 433.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003222/0.2767, allocations: 182.9 kB / 434 MB, free: 8.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2769, allocations: 378.8 kB / 434.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009298/0.2778, allocations: 418.4 kB / 434.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009386/0.2788, allocations: 0.5072 MB / 435.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/0.2803, allocations: 0.7362 MB / 436.1 MB, free: 6.238 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.2803, allocations: 4 kB / 436.1 MB, free: 6.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002917/0.2832, allocations: 1.295 MB / 437.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.2832, allocations: 8 kB / 437.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2833, allocations: 0 / 437.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.2843, allocations: 0.5411 MB / 437.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007756/0.2851, allocations: 195.7 kB / 438.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004011/0.2892, allocations: 3.399 MB / 441.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.2903, allocations: 172.1 kB / 441.7 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.292e-05/0.2904, allocations: 44.17 kB / 441.7 MB, free: 380 kB / 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,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003507/0.2907, allocations: 229.2 kB / 441.9 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.2909, allocations: 86.94 kB / 442 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002397/0.2911, allocations: 111.3 kB / 442.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2911, allocations: 8 kB / 442.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.2911, allocations: 4 kB / 442.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.2912, allocations: 3.984 kB / 442.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004339/0.2955, allocations: 2.464 MB / 444.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.2955, allocations: 8.156 kB / 444.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000751/0.2963, allocations: 175.8 kB / 444.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009635/0.2973, allocations: 0.506 MB / 445.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.267e-05/0.2973, allocations: 31.97 kB / 445.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003428/0.3008, allocations: 3.183 MB / 448.5 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3008, allocations: 0 / 448.5 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003544/0.3044, allocations: 1.776 MB / 450.3 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003408/0.3047, allocations: 236.1 kB / 450.5 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.3048, allocations: 32 kB / 450.5 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.306, allocations: 199.7 kB / 450.7 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008927/0.3069, allocations: 388.3 kB / 451.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.626e-05/0.307, allocations: 39.97 kB / 451.2 MB, free: 6.543 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003046/0.3074, allocations: 287.1 kB / 451.4 MB, free: 6.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3074, allocations: 4 kB / 451.4 MB, free: 6.254 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007358/0.3081, allocations: 244 kB / 451.7 MB, free: 6.016 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 (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.0008632/0.309, allocations: 407.8 kB / 452.1 MB, free: 5.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002393/0.3114, allocations: 1.157 MB / 453.2 MB, free: 4.555 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3114, allocations: 0 / 453.2 MB, free: 4.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.313, allocations: 0.7703 MB / 454 MB, free: 3.773 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008159/0.3138, allocations: 152.1 kB / 454.2 MB, free: 3.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003679/0.3175, allocations: 1.997 MB / 456.1 MB, free: 1.586 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.318, allocations: 0.948 MB / 457.1 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003241/0.3183, allocations: 81.7 kB / 457.2 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.3185, allocations: 71.41 kB / 457.2 MB, free: 472 kB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3185, allocations: 0 / 457.2 MB, free: 472 kB / 366.1 MB Notification: Performance of Templates: time 0.02914/0.3477, allocations: 17.73 MB / 475 MB, free: 14.79 MB / 398.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches