Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001335/0.001335, allocations: 112.5 kB / 18.36 MB, free: 4.84 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.001551/0.001551, allocations: 184.5 kB / 19.29 MB, free: 3.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 47.94 kB / 329.1 MB, free: 3.352 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1221, allocations: 46.63 MB / 375.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005711/0.1279, allocations: 4.308 MB / 380.1 MB, free: 280 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1961/0.324, allocations: 1.327 MB / 381.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000467/0.3245, allocations: 12.81 kB / 381.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003511/0.3249, allocations: 119.2 kB / 381.5 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004545/0.3253, allocations: 225.5 kB / 381.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.3266, allocations: 432.2 kB / 382.2 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.3279, allocations: 1.134 MB / 383.3 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004916/0.3284, allocations: 271.5 kB / 383.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009326/0.3294, allocations: 482 kB / 384 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007424/0.3301, allocations: 0.508 MB / 384.5 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001886/0.3303, allocations: 96.34 kB / 384.6 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003694/0.3307, allocations: 155.4 kB / 384.8 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002339/0.331, allocations: 224.6 kB / 385 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004427/0.3314, allocations: 442.5 kB / 385.4 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001335/0.3327, allocations: 1.058 MB / 386.5 MB, free: 8.258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3328, allocations: 0 / 386.5 MB, free: 8.258 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3328, allocations: 4 kB / 386.5 MB, free: 8.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.3328, allocations: 0 / 386.5 MB, free: 8.254 MB / 318.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.00351/0.3363, allocations: 1.288 MB / 387.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.3364, allocations: 9.625 kB / 387.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002756/0.3367, allocations: 89.33 kB / 387.9 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006975/0.3374, allocations: 447.6 kB / 388.3 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.695e-05/0.3374, allocations: 50.16 kB / 388.4 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.3376, allocations: 72.91 kB / 388.4 MB, free: 7.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.3394, allocations: 0.8127 MB / 389.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/0.3394, allocations: 2.188 kB / 389.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.187e-05/0.3395, allocations: 29.72 kB / 389.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/0.3395, allocations: 17.16 kB / 389.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002017/0.3415, allocations: 0.8703 MB / 390.2 MB, free: 6.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004572/0.3461, allocations: 2.379 MB / 392.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.3477, allocations: 0.7091 MB / 393.3 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009891/0.3487, allocations: 472 kB / 393.7 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.299e-05/0.3488, allocations: 12.39 kB / 393.7 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001176/0.35, allocations: 0.5525 MB / 394.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 2.745e-06/0.35, allocations: 1.375 kB / 394.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01098/0.361, allocations: 4.226 MB / 398.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.3611, allocations: 63.41 kB / 398.6 MB, free: 2.473 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004876/0.3616, allocations: 394.2 kB / 399 MB, free: 2.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.3617, allocations: 54.42 kB / 399 MB, free: 2.219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.3618, allocations: 272.3 kB / 399.3 MB, free: 1.973 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002293/0.3621, allocations: 358.4 kB / 399.6 MB, free: 1.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003134/0.3624, allocations: 187.1 kB / 399.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.331e-05/0.3625, allocations: 369.8 kB / 400.2 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000933/0.3634, allocations: 441.2 kB / 400.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009944/0.3644, allocations: 0.5286 MB / 401.1 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/0.3661, allocations: 0.7832 MB / 401.9 MB, free: 292 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.3661, allocations: 0 / 401.9 MB, free: 292 kB / 318.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003198/0.3693, allocations: 1.355 MB / 403.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.3693, allocations: 8.594 kB / 403.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.3694, allocations: 5.422 kB / 403.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/0.3706, allocations: 0.6577 MB / 403.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008383/0.3714, allocations: 201.9 kB / 404.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00416/0.3756, allocations: 3.432 MB / 407.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.3771, allocations: 180.9 kB / 407.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.3772, allocations: 32.44 kB / 407.8 MB, free: 12.04 MB / 334.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.0004923/0.3777, allocations: 232 kB / 408 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.3778, allocations: 71.03 kB / 408.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002206/0.3781, allocations: 102.4 kB / 408.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.3781, allocations: 14.02 kB / 408.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.3781, allocations: 5.188 kB / 408.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.3781, allocations: 3.984 kB / 408.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004655/0.3828, allocations: 2.495 MB / 410.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.3828, allocations: 2.656 kB / 410.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000796/0.3836, allocations: 175.1 kB / 410.9 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001045/0.3847, allocations: 0.6204 MB / 411.5 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.3848, allocations: 36.2 kB / 411.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004133/0.3889, allocations: 3.216 MB / 414.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.389, allocations: 6.062 kB / 414.7 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004035/0.393, allocations: 1.844 MB / 416.6 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004788/0.3935, allocations: 232.2 kB / 416.8 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.3937, allocations: 39.98 kB / 416.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/0.395, allocations: 199.7 kB / 417.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000886/0.3959, allocations: 376.4 kB / 417.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.252e-05/0.396, allocations: 47.95 kB / 417.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002923/0.3963, allocations: 267.2 kB / 417.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3963, allocations: 0 / 417.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008866/0.3972, allocations: 248 kB / 418 MB, free: 3.637 MB / 334.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.0003087/0.3975, allocations: 168.8 kB / 418.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002575/0.4001, allocations: 1.207 MB / 419.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4001, allocations: 0 / 419.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.4015, allocations: 0.7312 MB / 420.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009068/0.4024, allocations: 129.2 kB / 420.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003854/0.4063, allocations: 1.98 MB / 422.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.4068, allocations: 0.9361 MB / 423.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000255/0.407, allocations: 67.42 kB / 423.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4071, allocations: 0 / 423.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of Templates: time 0.01977/0.4268, allocations: 17.47 MB / 440.6 MB, free: 12.8 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches