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.0009532/0.0009532, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.000943/0.000943, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8831/0.8831, allocations: 177.1 MB / 204.2 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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 1.102e-06/1.102e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.275e-05/1.386e-05, allocations: 8.75 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00346/0.003474, allocations: 4.074 MB / 328.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.005123, allocations: 1.542 MB / 330.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001798/0.005303, allocations: 15.88 kB / 330.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.005604, allocations: 142.7 kB / 330.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003574/0.005961, allocations: 289.5 kB / 330.6 MB, free: 9.863 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005083/0.00647, allocations: 439 kB / 331 MB, free: 9.434 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008378/0.007307, allocations: 1.197 MB / 332.2 MB, free: 8.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002244/0.007532, allocations: 182.2 kB / 332.4 MB, free: 8.043 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005416/0.008073, allocations: 0.7056 MB / 333.1 MB, free: 7.336 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003417/0.008415, allocations: 438.9 kB / 333.5 MB, free: 6.906 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.807e-05/0.008503, allocations: 92 kB / 333.6 MB, free: 6.816 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001834/0.008686, allocations: 159.9 kB / 333.8 MB, free: 6.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.008865, allocations: 247.2 kB / 334 MB, free: 6.418 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002088/0.009074, allocations: 339.2 kB / 334.4 MB, free: 6.086 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000779/0.009853, allocations: 1.207 MB / 335.6 MB, free: 4.875 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.009855, allocations: 0 / 335.6 MB, free: 4.875 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.009856, allocations: 4 kB / 335.6 MB, free: 4.871 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.009865, allocations: 0 / 335.6 MB, free: 4.871 MB / 298.7 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.00176/0.01162, allocations: 1.394 MB / 337 MB, free: 3.441 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.01166, allocations: 8.031 kB / 337 MB, free: 3.434 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.01176, allocations: 118.7 kB / 337.1 MB, free: 3.309 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002665/0.01203, allocations: 120.3 kB / 337.2 MB, free: 3.191 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/0.01249, allocations: 411.2 kB / 337.6 MB, free: 2.762 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.01253, allocations: 54.31 kB / 337.7 MB, free: 2.707 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.615e-05/0.01261, allocations: 76.33 kB / 337.7 MB, free: 2.633 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.0138, allocations: 0.804 MB / 338.5 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.01382, allocations: 0 / 338.5 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.487e-05/0.01387, allocations: 32 kB / 338.6 MB, free: 1.789 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.01388, allocations: 16 kB / 338.6 MB, free: 1.773 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/0.015, allocations: 0.8354 MB / 339.4 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002552/0.01756, allocations: 1.975 MB / 341.4 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009106/0.01847, allocations: 0.6709 MB / 342.1 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005277/0.01899, allocations: 425.4 kB / 342.5 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.862e-05/0.01905, allocations: 9 kB / 342.5 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006678/0.01972, allocations: 0.5361 MB / 343 MB, free: 13.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 2.205e-06/0.01972, allocations: 0 / 343 MB, free: 13.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=110): time 0.006391/0.02611, allocations: 3.791 MB / 346.8 MB, free: 9.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.02615, allocations: 68.28 kB / 346.9 MB, free: 9.328 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003097/0.02646, allocations: 425.8 kB / 347.3 MB, free: 8.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.412e-05/0.02652, allocations: 65.62 kB / 347.4 MB, free: 8.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.02666, allocations: 277.6 kB / 347.6 MB, free: 8.562 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.02686, allocations: 388.8 kB / 348 MB, free: 8.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/0.02707, allocations: 186.9 kB / 348.2 MB, free: 7.988 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.02718, allocations: 374.8 kB / 348.6 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005705/0.02775, allocations: 414.4 kB / 349 MB, free: 7.211 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006101/0.02836, allocations: 0.515 MB / 349.5 MB, free: 6.676 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009512/0.02931, allocations: 0.7363 MB / 350.2 MB, free: 5.922 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.02931, allocations: 0 / 350.2 MB, free: 5.922 MB / 314.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001748/0.03106, allocations: 1.295 MB / 351.5 MB, free: 4.609 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.03108, allocations: 4 kB / 351.5 MB, free: 4.605 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.03109, allocations: 11.98 kB / 351.5 MB, free: 4.594 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006742/0.03176, allocations: 0.5294 MB / 352.1 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000396/0.03216, allocations: 203.6 kB / 352.3 MB, free: 3.855 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00268/0.03484, allocations: 3.28 MB / 355.5 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005279/0.03536, allocations: 171.9 kB / 355.7 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.928e-05/0.03541, allocations: 32 kB / 355.7 MB, free: 212 kB / 314.7 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.0002534/0.03567, allocations: 225.8 kB / 356 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.568e-05/0.03575, allocations: 79.53 kB / 356 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.03586, allocations: 115.2 kB / 356.2 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.03587, allocations: 11.94 kB / 356.2 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.03588, allocations: 4 kB / 356.2 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.03589, allocations: 4.031 kB / 356.2 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/0.0386, allocations: 2.23 MB / 358.4 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.0386, allocations: 4.219 kB / 358.4 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/0.03898, allocations: 171.8 kB / 358.6 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005849/0.03957, allocations: 0.4982 MB / 359.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-05/0.03962, allocations: 35.97 kB / 359.1 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002322/0.04195, allocations: 3.076 MB / 362.2 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.04195, allocations: 4.031 kB / 362.2 MB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.04409, allocations: 1.761 MB / 364 MB, free: 7.684 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002313/0.04432, allocations: 159.4 kB / 364.1 MB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.843e-05/0.0444, allocations: 32 kB / 364.1 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000584/0.04499, allocations: 199.9 kB / 364.3 MB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005697/0.04556, allocations: 388.3 kB / 364.7 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.398e-05/0.04561, allocations: 47.97 kB / 364.8 MB, free: 6.875 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002042/0.04581, allocations: 295.1 kB / 365 MB, free: 6.586 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04581, allocations: 3.938 kB / 365.1 MB, free: 6.582 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000452/0.04627, allocations: 247.9 kB / 365.3 MB, free: 6.34 MB / 330.7 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.003061/0.04933, allocations: 2.605 MB / 367.9 MB, free: 3.832 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.05072, allocations: 1.091 MB / 369 MB, free: 2.727 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.05072, allocations: 0 / 369 MB, free: 2.727 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009038/0.05163, allocations: 0.7311 MB / 369.7 MB, free: 1.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005188/0.05215, allocations: 150.4 kB / 369.9 MB, free: 1.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008064/0.06021, allocations: 7.125 MB / 377 MB, free: 10.53 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002319/0.06044, allocations: 349.6 kB / 377.3 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002307/0.06067, allocations: 85.7 kB / 377.4 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002753/0.06095, allocations: 272.4 kB / 377.7 MB, free: 9.801 MB / 346.7 MB Notification: Performance of SimCode: time 6.82e-07/0.06095, allocations: 0 / 377.7 MB, free: 9.801 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.09409, allocations: 23.54 MB / 401.2 MB, free: 2.398 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.778/7.872, allocations: 0 / 401.2 MB, free: 2.398 MB / 362.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/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: 9.613314561545849]