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.001287/0.001287, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001608/0.001608, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 63.89 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2423, allocations: 50.54 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005567/0.2479, allocations: 4.476 MB / 413.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003368/0.2513, allocations: 1.559 MB / 415.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005358/0.2519, allocations: 15.94 kB / 415.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004858/0.2524, allocations: 138.7 kB / 415.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000596/0.253, allocations: 273.7 kB / 415.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009894/0.254, allocations: 419.2 kB / 416.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001272/0.2553, allocations: 1.17 MB / 417.3 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004252/0.2557, allocations: 265.7 kB / 417.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006484/0.2564, allocations: 0.4946 MB / 418 MB, free: 8.773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005987/0.257, allocations: 0.5293 MB / 418.6 MB, free: 8.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001477/0.2571, allocations: 96 kB / 418.7 MB, free: 8.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003426/0.2575, allocations: 164 kB / 418.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002437/0.2577, allocations: 235.3 kB / 419 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004693/0.2582, allocations: 469.8 kB / 419.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001167/0.2594, allocations: 1.124 MB / 420.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2594, allocations: 3.938 kB / 420.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2594, allocations: 4 kB / 420.6 MB, free: 6.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.2594, allocations: 4 kB / 420.6 MB, free: 6.16 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.003126/0.2626, allocations: 1.344 MB / 422 MB, free: 4.762 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2626, allocations: 8.031 kB / 422 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005027/0.2631, allocations: 128.3 kB / 422.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006993/0.2638, allocations: 473.8 kB / 422.6 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.2639, allocations: 54.38 kB / 422.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.264, allocations: 76.12 kB / 422.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.2656, allocations: 0.7998 MB / 423.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.2657, allocations: 3.953 kB / 423.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.949e-05/0.2658, allocations: 28 kB / 423.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.2658, allocations: 16 kB / 423.6 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001932/0.2677, allocations: 0.8471 MB / 424.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00406/0.2718, allocations: 2.416 MB / 426.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.2733, allocations: 0.7243 MB / 427.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008884/0.2742, allocations: 463.8 kB / 428 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.283e-05/0.2743, allocations: 13 kB / 428 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.2753, allocations: 0.536 MB / 428.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.485e-06/0.2753, allocations: 7.938 kB / 428.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01063/0.286, allocations: 4.182 MB / 432.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.286, allocations: 64.41 kB / 432.8 MB, free: 9.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004438/0.2865, allocations: 413.9 kB / 433.2 MB, free: 9.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.596e-05/0.2866, allocations: 61.69 kB / 433.3 MB, free: 9.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.2868, allocations: 281.5 kB / 433.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002661/0.2871, allocations: 392.7 kB / 433.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003103/0.2874, allocations: 190.8 kB / 434.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.2875, allocations: 382.8 kB / 434.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008985/0.2884, allocations: 406.4 kB / 434.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009594/0.2894, allocations: 0.5111 MB / 435.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001539/0.2909, allocations: 0.744 MB / 436.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.291, allocations: 0 / 436.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002942/0.2939, allocations: 1.299 MB / 437.4 MB, free: 4.875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.2939, allocations: 4 kB / 437.4 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.2939, allocations: 4 kB / 437.4 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/0.295, allocations: 0.5372 MB / 438 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007569/0.2958, allocations: 203.7 kB / 438.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003988/0.2998, allocations: 3.395 MB / 441.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.301, allocations: 176 kB / 441.7 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.053e-05/0.301, allocations: 43.95 kB / 441.8 MB, free: 328 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.0003611/0.3014, allocations: 229.8 kB / 442 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.3016, allocations: 83.47 kB / 442.1 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002581/0.3018, allocations: 103.2 kB / 442.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.3018, allocations: 12 kB / 442.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3019, allocations: 0 / 442.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.3019, allocations: 7.969 kB / 442.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004383/0.3063, allocations: 2.476 MB / 444.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3063, allocations: 0 / 444.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007609/0.307, allocations: 176 kB / 444.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009219/0.308, allocations: 0.5059 MB / 445.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.703e-05/0.3081, allocations: 31.97 kB / 445.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003598/0.3117, allocations: 3.187 MB / 448.6 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.3117, allocations: 4.031 kB / 448.6 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00375/0.3155, allocations: 1.78 MB / 450.4 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003378/0.3158, allocations: 240.5 kB / 450.6 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.3159, allocations: 32 kB / 450.6 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.3172, allocations: 199.7 kB / 450.8 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009075/0.3182, allocations: 384.3 kB / 451.2 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.416e-05/0.3183, allocations: 43.95 kB / 451.2 MB, free: 6.477 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004186/0.3187, allocations: 287.1 kB / 451.5 MB, free: 6.191 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3187, allocations: 0 / 451.5 MB, free: 6.191 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008134/0.3195, allocations: 243.9 kB / 451.8 MB, free: 5.953 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.0008994/0.3204, allocations: 407.1 kB / 452.2 MB, free: 5.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002393/0.3228, allocations: 1.157 MB / 453.3 MB, free: 4.492 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.3228, allocations: 0 / 453.3 MB, free: 4.492 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001559/0.3244, allocations: 0.778 MB / 454.1 MB, free: 3.703 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008109/0.3252, allocations: 149.7 kB / 454.2 MB, free: 3.559 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003744/0.329, allocations: 2.004 MB / 456.2 MB, free: 1.504 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004665/0.3295, allocations: 0.9441 MB / 457.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003506/0.3298, allocations: 89.7 kB / 457.3 MB, free: 456 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002093/0.33, allocations: 71.41 kB / 457.3 MB, free: 384 kB / 366.1 MB Notification: Performance of SimCode: time 1.643e-06/0.3301, allocations: 0 / 457.3 MB, free: 384 kB / 366.1 MB Notification: Performance of Templates: time 0.02504/0.3551, allocations: 17.74 MB / 475.1 MB, free: 14.7 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