Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 225.6 MB / 249.1 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 47.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1056, allocations: 52.15 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005617/0.1113, allocations: 4.306 MB / 422.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002635/0.1139, allocations: 1.395 MB / 423.5 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003082/0.1142, allocations: 11.94 kB / 423.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003398/0.1145, allocations: 118.8 kB / 423.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004176/0.115, allocations: 222 kB / 423.8 MB, free: 6.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.116, allocations: 442 kB / 424.3 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.1172, allocations: 1.135 MB / 425.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003264/0.1175, allocations: 185.7 kB / 425.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006431/0.1181, allocations: 478.6 kB / 426 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006103/0.1188, allocations: 0.5215 MB / 426.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.1189, allocations: 92 kB / 426.7 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002711/0.1192, allocations: 155.9 kB / 426.8 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000224/0.1194, allocations: 227.3 kB / 427 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000411/0.1198, allocations: 441.9 kB / 427.5 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.121, allocations: 1.074 MB / 428.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.121, allocations: 0 / 428.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.121, allocations: 4 kB / 428.5 MB, free: 1.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.121, allocations: 0 / 428.5 MB, free: 1.816 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003081/0.1241, allocations: 1.301 MB / 429.8 MB, free: 472 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1241, allocations: 12.03 kB / 429.8 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.1242, allocations: 110.7 kB / 430 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002159/0.1245, allocations: 96.38 kB / 430 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007473/0.1252, allocations: 451.1 kB / 430.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.992e-05/0.1253, allocations: 54.38 kB / 430.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.1254, allocations: 71.14 kB / 430.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/0.127, allocations: 0.8037 MB / 431.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.083e-05/0.1271, allocations: 7.984 kB / 431.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.85e-05/0.1271, allocations: 28 kB / 431.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.1272, allocations: 19.94 kB / 431.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001968/0.1291, allocations: 0.8666 MB / 432.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004295/0.1334, allocations: 2.377 MB / 434.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.1349, allocations: 0.6721 MB / 435.4 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009206/0.1358, allocations: 436.2 kB / 435.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.63e-05/0.1359, allocations: 13 kB / 435.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00118/0.1371, allocations: 0.5477 MB / 436.4 MB, free: 9.719 MB / 366.1 MB Notification: Performance of pre-optimization done (n=86): time 2.936e-06/0.1371, allocations: 0 / 436.4 MB, free: 9.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.01076/0.1478, allocations: 4.226 MB / 440.6 MB, free: 5.363 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.1479, allocations: 60.41 kB / 440.7 MB, free: 5.293 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004647/0.1484, allocations: 393.9 kB / 441 MB, free: 4.902 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.246e-05/0.1484, allocations: 57.69 kB / 441.1 MB, free: 4.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/0.1487, allocations: 269.5 kB / 441.4 MB, free: 4.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003372/0.149, allocations: 388.8 kB / 441.7 MB, free: 4.188 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003085/0.1493, allocations: 182.9 kB / 441.9 MB, free: 4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.1495, allocations: 374.7 kB / 442.3 MB, free: 3.625 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009731/0.1505, allocations: 446.3 kB / 442.7 MB, free: 3.191 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/0.1515, allocations: 0.5267 MB / 443.2 MB, free: 2.645 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/0.1532, allocations: 0.7792 MB / 444 MB, free: 1.848 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1532, allocations: 4 kB / 444 MB, free: 1.844 MB / 366.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003157/0.1564, allocations: 1.342 MB / 445.4 MB, free: 496 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.1564, allocations: 8 kB / 445.4 MB, free: 488 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1564, allocations: 0 / 445.4 MB, free: 488 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1927/0.3491, allocations: 0.6509 MB / 446 MB, free: 30.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008637/0.3499, allocations: 201.6 kB / 446.2 MB, free: 30.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003637/0.3536, allocations: 3.435 MB / 449.7 MB, free: 28.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.3547, allocations: 175 kB / 449.8 MB, free: 28.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.15e-05/0.3548, allocations: 38.73 kB / 449.9 MB, free: 28.08 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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003312/0.3551, allocations: 217.8 kB / 450.1 MB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.3552, allocations: 82.61 kB / 450.2 MB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001754/0.3554, allocations: 104.5 kB / 450.3 MB, free: 27.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.3554, allocations: 14.25 kB / 450.3 MB, free: 27.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.3554, allocations: 2.484 kB / 450.3 MB, free: 27.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.3554, allocations: 4.875 kB / 450.3 MB, free: 27.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003923/0.3594, allocations: 2.486 MB / 452.8 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.3594, allocations: 2.406 kB / 452.8 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000723/0.3601, allocations: 174.7 kB / 452.9 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009826/0.3611, allocations: 0.621 MB / 453.6 MB, free: 27.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.073e-05/0.3612, allocations: 41.33 kB / 453.6 MB, free: 27.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002825/0.364, allocations: 3.217 MB / 456.8 MB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.364, allocations: 1.891 kB / 456.8 MB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003666/0.3676, allocations: 1.843 MB / 458.7 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003822/0.368, allocations: 237.4 kB / 458.9 MB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.3682, allocations: 32.52 kB / 458.9 MB, free: 24.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/0.3693, allocations: 207.4 kB / 459.1 MB, free: 24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008552/0.3702, allocations: 380.1 kB / 459.5 MB, free: 23.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.71e-05/0.3703, allocations: 45.06 kB / 459.6 MB, free: 23.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002569/0.3705, allocations: 270.4 kB / 459.8 MB, free: 23.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3705, allocations: 1.125 kB / 459.8 MB, free: 23.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007433/0.3713, allocations: 247.8 kB / 460.1 MB, free: 23.74 MB / 366.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.003684/0.375, allocations: 2.441 MB / 462.5 MB, free: 22.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.3773, allocations: 1.119 MB / 463.6 MB, free: 21.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.3773, allocations: 1.125 kB / 463.6 MB, free: 21.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/0.3787, allocations: 0.7535 MB / 464.4 MB, free: 21.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008096/0.3795, allocations: 133 kB / 464.5 MB, free: 21.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.3916, allocations: 7.325 MB / 471.8 MB, free: 17.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.3919, allocations: 0.9345 MB / 472.8 MB, free: 17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003945/0.3923, allocations: 76.84 kB / 472.8 MB, free: 16.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003013/0.3926, allocations: 251.2 kB / 473.1 MB, free: 16.81 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3926, allocations: 3.938 kB / 473.1 MB, free: 16.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05334/0.446, allocations: 23.78 MB / 496.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.16, allocations: 8.062 kB / 496.9 MB, free: 14.35 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.089350168127567]