Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001579/0.001579, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00147/0.00147, allocations: 207.5 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.393/1.393, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 47.92 kB / 377.7 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2637, allocations: 53.36 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006367/0.2701, allocations: 4.066 MB / 435.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002919/0.273, allocations: 1.52 MB / 436.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003399/0.2733, allocations: 15.88 kB / 436.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004134/0.2738, allocations: 138.7 kB / 436.8 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006534/0.2744, allocations: 277.7 kB / 437.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.2754, allocations: 438.2 kB / 437.5 MB, free: 160 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00132/0.2767, allocations: 1.17 MB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000353/0.2771, allocations: 191.9 kB / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007778/0.2779, allocations: 0.518 MB / 439.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007443/0.2786, allocations: 0.5371 MB / 439.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001406/0.2788, allocations: 96 kB / 440 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003201/0.2791, allocations: 164 kB / 440.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002877/0.2794, allocations: 243.3 kB / 440.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004412/0.2798, allocations: 398.3 kB / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.2811, allocations: 1.136 MB / 441.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2811, allocations: 0 / 441.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2811, allocations: 0 / 441.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.2811, allocations: 4 kB / 441.9 MB, free: 11.7 MB / 350.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.003562/0.2847, allocations: 1.399 MB / 443.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.2847, allocations: 12.03 kB / 443.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001625/0.2849, allocations: 118.6 kB / 443.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005715/0.2855, allocations: 120.3 kB / 443.6 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008984/0.2864, allocations: 412 kB / 444 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.76e-05/0.2864, allocations: 54.38 kB / 444 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.2866, allocations: 75.89 kB / 444.1 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/0.2883, allocations: 0.8075 MB / 444.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.381e-05/0.2884, allocations: 7.922 kB / 444.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.13e-05/0.2885, allocations: 28 kB / 445 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.259e-05/0.2885, allocations: 16 kB / 445 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002024/0.2905, allocations: 0.8392 MB / 445.8 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004475/0.295, allocations: 1.943 MB / 447.8 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001574/0.2966, allocations: 0.6937 MB / 448.5 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009316/0.2975, allocations: 420.3 kB / 448.9 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.292e-05/0.2976, allocations: 13 kB / 448.9 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/0.2988, allocations: 0.5361 MB / 449.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.186e-06/0.2988, allocations: 0 / 449.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01145/0.3102, allocations: 3.794 MB / 453.2 MB, free: 220 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.3103, allocations: 68.34 kB / 453.3 MB, free: 136 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005378/0.3108, allocations: 421.9 kB / 453.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.998e-05/0.3109, allocations: 57.69 kB / 453.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.3111, allocations: 289.6 kB / 454 MB, free: 15.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003471/0.3115, allocations: 392.7 kB / 454.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003282/0.3118, allocations: 186.9 kB / 454.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.312, allocations: 370.8 kB / 455 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009347/0.3129, allocations: 418.4 kB / 455.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.314, allocations: 0.511 MB / 455.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.3156, allocations: 0.7401 MB / 456.6 MB, free: 12.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3156, allocations: 0 / 456.6 MB, free: 12.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003221/0.3188, allocations: 1.295 MB / 457.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.3189, allocations: 4 kB / 457.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3189, allocations: 4 kB / 457.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/0.3201, allocations: 0.5372 MB / 458.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008082/0.3209, allocations: 199.7 kB / 458.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004448/0.3253, allocations: 3.284 MB / 461.9 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.3264, allocations: 171.9 kB / 462.1 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.52e-05/0.3265, allocations: 39.98 kB / 462.1 MB, free: 7 MB / 366.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.0004097/0.3269, allocations: 224.1 kB / 462.4 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001568/0.3271, allocations: 83.47 kB / 462.4 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002365/0.3273, allocations: 107.2 kB / 462.5 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/0.3273, allocations: 16 kB / 462.6 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.3274, allocations: 3.984 kB / 462.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.3274, allocations: 3.984 kB / 462.6 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004622/0.332, allocations: 2.226 MB / 464.8 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.332, allocations: 0 / 464.8 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008051/0.3328, allocations: 175.9 kB / 465 MB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.3338, allocations: 0.502 MB / 465.5 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.765e-05/0.3339, allocations: 39.97 kB / 465.5 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003991/0.3379, allocations: 3.072 MB / 468.6 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.3379, allocations: 4.031 kB / 468.6 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004007/0.3419, allocations: 1.757 MB / 470.3 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005004/0.3424, allocations: 163.4 kB / 470.5 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001585/0.3426, allocations: 39.98 kB / 470.5 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.3439, allocations: 195.8 kB / 470.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008871/0.3447, allocations: 396.2 kB / 471.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.949e-05/0.3448, allocations: 40.16 kB / 471.2 MB, free: 13.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003463/0.3452, allocations: 287.1 kB / 471.4 MB, free: 13.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3452, allocations: 0 / 471.4 MB, free: 13.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007868/0.346, allocations: 251.9 kB / 471.7 MB, free: 13.14 MB / 382.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.005436/0.3514, allocations: 2.63 MB / 474.3 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00249/0.3539, allocations: 1.079 MB / 475.4 MB, free: 9.527 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3539, allocations: 320 / 475.4 MB, free: 9.527 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00163/0.3555, allocations: 0.7266 MB / 476.1 MB, free: 8.785 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.3566, allocations: 155.8 kB / 476.3 MB, free: 8.633 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01361/0.3702, allocations: 7.283 MB / 483.6 MB, free: 1.172 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.3706, allocations: 353.6 kB / 483.9 MB, free: 0.793 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004036/0.371, allocations: 85.69 kB / 484 MB, free: 0.707 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004278/0.3714, allocations: 271.3 kB / 484.2 MB, free: 452 kB / 382.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3714, allocations: 0 / 484.2 MB, free: 452 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06188/0.4333, allocations: 23.64 MB / 0.496 GB, free: 8.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.07, allocations: 4.062 kB / 0.496 GB, free: 8.965 MB / 414.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 15.587872759992024]