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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 55.92 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.3004, allocations: 49.17 MB / 396.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00735/0.3077, allocations: 4.342 MB / 400.7 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004076/0.3118, allocations: 1.354 MB / 402.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008736/0.3127, allocations: 17.84 kB / 402.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005554/0.3132, allocations: 116.6 kB / 402.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009159/0.3142, allocations: 229.6 kB / 402.4 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.316, allocations: 426.3 kB / 402.8 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001949/0.318, allocations: 1.144 MB / 404 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004731/0.3185, allocations: 190 kB / 404.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001073/0.3195, allocations: 485.2 kB / 404.6 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008817/0.3204, allocations: 0.5235 MB / 405.1 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001729/0.3206, allocations: 92.72 kB / 405.2 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003579/0.3209, allocations: 150.5 kB / 405.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002122/0.3212, allocations: 230.1 kB / 405.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004182/0.3216, allocations: 449.2 kB / 406.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.323, allocations: 1.072 MB / 407.1 MB, free: 2.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.323, allocations: 0 / 407.1 MB, free: 2.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.323, allocations: 1.156 kB / 407.1 MB, free: 2.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.977e-05/0.323, allocations: 0 / 407.1 MB, free: 2.52 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.003651/0.3267, allocations: 1.36 MB / 408.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.3267, allocations: 14.78 kB / 408.5 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.3269, allocations: 111.5 kB / 408.6 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002675/0.3272, allocations: 94.45 kB / 408.7 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006752/0.3278, allocations: 381.5 kB / 409.1 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.715e-05/0.3279, allocations: 51.31 kB / 409.1 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.328, allocations: 75.67 kB / 409.2 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.3297, allocations: 0.8046 MB / 410 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.342e-05/0.3297, allocations: 6.766 kB / 410 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.896e-05/0.3298, allocations: 33.72 kB / 410 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.344e-05/0.3298, allocations: 16 kB / 410.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001843/0.3316, allocations: 0.8702 MB / 410.9 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004874/0.3365, allocations: 2.328 MB / 413.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001574/0.3381, allocations: 0.6695 MB / 413.9 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009455/0.339, allocations: 436 kB / 414.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.606e-05/0.3391, allocations: 13.36 kB / 414.4 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001351/0.3405, allocations: 0.5524 MB / 414.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.487e-06/0.3405, allocations: 0 / 414.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.0116/0.3521, allocations: 3.858 MB / 418.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.3522, allocations: 67.12 kB / 418.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005618/0.3527, allocations: 393.1 kB / 419.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.3528, allocations: 50.61 kB / 419.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/0.3531, allocations: 278 kB / 419.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003579/0.3534, allocations: 374.9 kB / 419.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000324/0.3538, allocations: 186.5 kB / 420.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.3539, allocations: 372.7 kB / 420.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009622/0.3549, allocations: 440.3 kB / 420.9 MB, free: 10 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.356, allocations: 0.5329 MB / 421.4 MB, free: 9.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.3577, allocations: 0.7813 MB / 422.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3577, allocations: 0 / 422.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003164/0.3609, allocations: 1.35 MB / 423.5 MB, free: 7.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.3609, allocations: 4 kB / 423.6 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3609, allocations: 4 kB / 423.6 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001186/0.3621, allocations: 0.6465 MB / 424.2 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008086/0.3629, allocations: 203.6 kB / 424.4 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004428/0.3674, allocations: 3.327 MB / 427.7 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.3687, allocations: 179.9 kB / 427.9 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-05/0.3688, allocations: 35.94 kB / 427.9 MB, free: 3.184 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.0005279/0.3693, allocations: 229.6 kB / 428.2 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.3695, allocations: 71.58 kB / 428.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/0.3697, allocations: 103 kB / 428.3 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.3697, allocations: 12 kB / 428.3 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.3698, allocations: 0 / 428.3 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.3698, allocations: 3.984 kB / 428.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004903/0.3747, allocations: 2.462 MB / 430.8 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.3747, allocations: 0 / 430.8 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007785/0.3755, allocations: 179.9 kB / 431 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/0.3766, allocations: 0.6272 MB / 431.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-05/0.3767, allocations: 31.97 kB / 431.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003834/0.3805, allocations: 3.119 MB / 434.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.3805, allocations: 4.031 kB / 434.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004016/0.3845, allocations: 1.841 MB / 436.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004733/0.385, allocations: 159.4 kB / 436.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001474/0.3852, allocations: 32 kB / 436.8 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.3864, allocations: 203.7 kB / 437 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008895/0.3873, allocations: 388.3 kB / 437.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.884e-05/0.3874, allocations: 43.95 kB / 437.4 MB, free: 9.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003864/0.3878, allocations: 271.2 kB / 437.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3878, allocations: 0 / 437.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001007/0.3888, allocations: 244 kB / 437.9 MB, free: 8.863 MB / 350.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.004541/0.3933, allocations: 2.43 MB / 440.4 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002693/0.396, allocations: 1.126 MB / 441.5 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.85e-06/0.396, allocations: 3.938 kB / 441.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001625/0.3977, allocations: 0.7429 MB / 442.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009393/0.3986, allocations: 142 kB / 442.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/0.413, allocations: 7.326 MB / 449.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007117/0.4137, allocations: 0.9322 MB / 450.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004551/0.4141, allocations: 81.38 kB / 450.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004191/0.4145, allocations: 255.3 kB / 451 MB, free: 11.54 MB / 366.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4145, allocations: 0 / 451 MB, free: 11.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0712/0.4857, allocations: 24.68 MB / 475.6 MB, free: 2.766 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.87/14.36, allocations: 8.062 kB / 475.6 MB, free: 2.758 MB / 382.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.178676930023357]