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.001716/0.001716, allocations: 113.2 kB / 20.43 MB, free: 1.309 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.001537/0.001537, allocations: 212.9 kB / 23.74 MB, free: 4.535 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.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 7.977 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.001649/0.001649, allocations: 47.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.243, allocations: 53.36 MB / 431.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006366/0.2494, allocations: 4.513 MB / 435.7 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003603/0.253, allocations: 1.594 MB / 437.2 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007842/0.2538, allocations: 19.88 kB / 437.3 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006511/0.2544, allocations: 130.8 kB / 437.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001103/0.2555, allocations: 281.7 kB / 437.7 MB, free: 296 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.2569, allocations: 431.1 kB / 438.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001738/0.2586, allocations: 1.17 MB / 439.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004323/0.2591, allocations: 190.2 kB / 439.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009697/0.26, allocations: 0.5064 MB / 440 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.2611, allocations: 0.541 MB / 440.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002637/0.2613, allocations: 95.98 kB / 440.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004965/0.2618, allocations: 168 kB / 440.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003307/0.2622, allocations: 239.3 kB / 441 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005177/0.2627, allocations: 469.8 kB / 441.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001434/0.2641, allocations: 1.133 MB / 442.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.2641, allocations: 0 / 442.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2641, allocations: 0 / 442.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.319e-05/0.2642, allocations: 3.984 kB / 442.6 MB, free: 11.36 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.003599/0.2677, allocations: 1.399 MB / 444 MB, free: 9.914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.2678, allocations: 12.02 kB / 444 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001577/0.268, allocations: 114.7 kB / 444.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005632/0.2685, allocations: 120.3 kB / 444.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008337/0.2694, allocations: 407.9 kB / 444.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.619e-05/0.2694, allocations: 58.38 kB / 444.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.2695, allocations: 71.94 kB / 444.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/0.2713, allocations: 0.8037 MB / 445.5 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.344e-05/0.2713, allocations: 7.953 kB / 445.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.374e-05/0.2714, allocations: 28 kB / 445.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.2714, allocations: 19.94 kB / 445.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002003/0.2734, allocations: 0.8393 MB / 446.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004908/0.2783, allocations: 2.354 MB / 448.8 MB, free: 4.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/0.2799, allocations: 0.685 MB / 449.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009693/0.2809, allocations: 424.2 kB / 449.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.974e-05/0.281, allocations: 13 kB / 449.9 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00124/0.2822, allocations: 0.5322 MB / 450.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.955e-06/0.2822, allocations: 4 kB / 450.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01162/0.2939, allocations: 3.79 MB / 454.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.2939, allocations: 64.41 kB / 454.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006053/0.2945, allocations: 425.9 kB / 454.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000114/0.2946, allocations: 53.7 kB / 454.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002522/0.2949, allocations: 285.5 kB / 455 MB, free: 14.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003981/0.2953, allocations: 396.7 kB / 455.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003517/0.2956, allocations: 190.8 kB / 455.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.2958, allocations: 374.8 kB / 456 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.2969, allocations: 418.4 kB / 456.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.298, allocations: 0.5033 MB / 456.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.2997, allocations: 0.744 MB / 457.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.2997, allocations: 0 / 457.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003255/0.303, allocations: 1.296 MB / 458.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.303, allocations: 4 kB / 458.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.303, allocations: 0 / 458.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/0.3042, allocations: 0.541 MB / 459.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008533/0.305, allocations: 195.7 kB / 459.7 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004837/0.3099, allocations: 3.304 MB / 463 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/0.3112, allocations: 175.9 kB / 463.1 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001741/0.3113, allocations: 32 kB / 463.2 MB, free: 6.203 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.0005756/0.3119, allocations: 233.5 kB / 463.4 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/0.3122, allocations: 79.47 kB / 463.5 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002832/0.3124, allocations: 111.2 kB / 463.6 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/0.3124, allocations: 8 kB / 463.6 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.3125, allocations: 4 kB / 463.6 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.3125, allocations: 3.984 kB / 463.6 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005437/0.3179, allocations: 2.429 MB / 466 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.939e-06/0.3179, allocations: 3.984 kB / 466 MB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007818/0.3187, allocations: 171.8 kB / 466.2 MB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.3197, allocations: 0.5061 MB / 466.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/0.3198, allocations: 40.14 kB / 466.8 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004145/0.324, allocations: 3.08 MB / 469.8 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/0.324, allocations: 7.969 kB / 469.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004294/0.3283, allocations: 1.757 MB / 471.6 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005201/0.3288, allocations: 167.4 kB / 471.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.329, allocations: 28.19 kB / 471.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.3303, allocations: 211.7 kB / 472 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009334/0.3313, allocations: 392.2 kB / 472.4 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/0.3314, allocations: 39.97 kB / 472.4 MB, free: 12.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004911/0.3319, allocations: 291.1 kB / 472.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3319, allocations: 0 / 472.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001042/0.3329, allocations: 247.9 kB / 472.9 MB, free: 12.1 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.005847/0.3388, allocations: 2.613 MB / 475.6 MB, free: 9.578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00297/0.3418, allocations: 1.091 MB / 476.6 MB, free: 8.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3418, allocations: 0 / 476.6 MB, free: 8.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00176/0.3435, allocations: 0.7234 MB / 477.4 MB, free: 7.742 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.3447, allocations: 143.1 kB / 477.5 MB, free: 7.605 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/0.3605, allocations: 7.289 MB / 484.8 MB, free: 132 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008249/0.3614, allocations: 0.9441 MB / 485.7 MB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004238/0.3618, allocations: 89.69 kB / 485.8 MB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004636/0.3622, allocations: 267.3 kB / 486.1 MB, free: 14.8 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3622, allocations: 0 / 486.1 MB, free: 14.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07225/0.4345, allocations: 25.12 MB / 0.4992 GB, free: 5.824 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.22, allocations: 19.05 kB / 0.4993 GB, free: 5.809 MB / 414.1 MB " [Timeout remaining time 646] (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: 16.897303560981527]