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.0007981/0.0007981, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007587/0.0007587, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8854/0.8854, allocations: 173.3 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.433e-06/1.433e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.917e-05/2.06e-05, allocations: 5.516 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003566/0.003586, allocations: 3.891 MB / 322.3 MB, free: 2.426 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002119/0.005705, allocations: 1.352 MB / 323.7 MB, free: 1.07 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003725/0.006078, allocations: 11.94 kB / 323.7 MB, free: 1.059 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002949/0.006373, allocations: 118.8 kB / 323.8 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003903/0.006763, allocations: 241.8 kB / 324 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.007779, allocations: 450.1 kB / 324.5 MB, free: 272 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009352/0.008715, allocations: 1.166 MB / 325.6 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000281/0.008996, allocations: 178.1 kB / 325.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007774/0.009773, allocations: 0.6667 MB / 326.5 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003847/0.01016, allocations: 423 kB / 326.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.662e-05/0.01025, allocations: 92 kB / 327 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.01048, allocations: 151.9 kB / 327.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.01063, allocations: 223.2 kB / 327.3 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002336/0.01087, allocations: 335.2 kB / 327.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008817/0.01175, allocations: 1.145 MB / 328.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.01175, allocations: 4 kB / 328.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.01176, allocations: 0 / 328.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.01177, allocations: 0 / 328.8 MB, free: 11.89 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.001974/0.01374, allocations: 1.356 MB / 330.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.01379, allocations: 8.922 kB / 330.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.01391, allocations: 122.7 kB / 330.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.01411, allocations: 88.42 kB / 330.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000577/0.01469, allocations: 387.4 kB / 330.8 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.046e-05/0.01474, allocations: 54.38 kB / 330.8 MB, free: 9.812 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.99e-05/0.01483, allocations: 68.38 kB / 330.9 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.01591, allocations: 0.8081 MB / 331.7 MB, free: 8.934 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.01593, allocations: 8.141 kB / 331.7 MB, free: 8.926 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.302e-05/0.01599, allocations: 27.94 kB / 331.7 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.016, allocations: 19.94 kB / 331.8 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.0172, allocations: 0.8627 MB / 332.6 MB, free: 8.016 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002882/0.02008, allocations: 1.932 MB / 334.5 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.02115, allocations: 0.6657 MB / 335.2 MB, free: 5.332 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005684/0.02172, allocations: 436.2 kB / 335.6 MB, free: 4.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.474e-05/0.02178, allocations: 12.94 kB / 335.7 MB, free: 4.891 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007199/0.0225, allocations: 0.5517 MB / 336.2 MB, free: 4.324 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 3.527e-06/0.0225, allocations: 0 / 336.2 MB, free: 4.324 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.006248/0.02875, allocations: 3.846 MB / 340 MB, free: 456 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.02879, allocations: 64.39 kB / 340.1 MB, free: 376 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.02915, allocations: 394 kB / 340.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.507e-05/0.02921, allocations: 65.62 kB / 340.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.02937, allocations: 281.5 kB / 340.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/0.02957, allocations: 368.9 kB / 341.2 MB, free: 15.26 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/0.02977, allocations: 182.9 kB / 341.4 MB, free: 15.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.02989, allocations: 374.8 kB / 341.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005828/0.03047, allocations: 438.4 kB / 342.2 MB, free: 14.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006117/0.03109, allocations: 0.5305 MB / 342.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000973/0.03206, allocations: 0.7753 MB / 343.5 MB, free: 12.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.03206, allocations: 0 / 343.5 MB, free: 12.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001793/0.03386, allocations: 1.358 MB / 344.8 MB, free: 11.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.03388, allocations: 4 kB / 344.8 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.03389, allocations: 0 / 344.8 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007596/0.03464, allocations: 0.6504 MB / 345.5 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004187/0.03506, allocations: 203.6 kB / 345.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002643/0.03771, allocations: 3.319 MB / 349 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006731/0.03838, allocations: 179.9 kB / 349.2 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/0.03843, allocations: 39.97 kB / 349.2 MB, free: 7 MB / 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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003164/0.03875, allocations: 221.7 kB / 349.4 MB, free: 6.773 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.616e-05/0.03885, allocations: 75.56 kB / 349.5 MB, free: 6.699 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000109/0.03895, allocations: 103 kB / 349.6 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.03896, allocations: 12 kB / 349.6 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.03897, allocations: 0 / 349.6 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.475e-06/0.03898, allocations: 3.984 kB / 349.6 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.04185, allocations: 2.272 MB / 351.9 MB, free: 4.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.04185, allocations: 0 / 351.9 MB, free: 4.223 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003999/0.04225, allocations: 179.9 kB / 352.1 MB, free: 4.047 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006659/0.04292, allocations: 0.6192 MB / 352.7 MB, free: 3.418 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-05/0.04298, allocations: 31.97 kB / 352.7 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002313/0.04529, allocations: 3.103 MB / 355.8 MB, free: 120 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.04529, allocations: 8.219 kB / 355.8 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.04768, allocations: 1.837 MB / 357.7 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003436/0.04802, allocations: 159.4 kB / 357.8 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.785e-05/0.04811, allocations: 36 kB / 357.9 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005992/0.04871, allocations: 199.7 kB / 358.1 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005887/0.04929, allocations: 396.2 kB / 358.4 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.612e-05/0.04935, allocations: 39.97 kB / 358.5 MB, free: 13.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002024/0.04955, allocations: 271.1 kB / 358.7 MB, free: 13.15 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04955, allocations: 4 kB / 358.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005805/0.05013, allocations: 247.9 kB / 359 MB, free: 12.9 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 (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.00268/0.05281, allocations: 2.445 MB / 361.4 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.05449, allocations: 1.126 MB / 362.6 MB, free: 9.266 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.05449, allocations: 320 / 362.6 MB, free: 9.266 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.05554, allocations: 0.7426 MB / 363.3 MB, free: 8.512 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006268/0.05616, allocations: 145.4 kB / 363.4 MB, free: 8.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00881/0.06497, allocations: 7.167 MB / 370.6 MB, free: 1.016 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.06522, allocations: 340.8 kB / 370.9 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002782/0.06549, allocations: 81.44 kB / 371 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/0.06575, allocations: 252.4 kB / 371.3 MB, free: 332 kB / 330.7 MB Notification: Performance of SimCode: time 1.433e-06/0.06575, allocations: 0 / 371.3 MB, free: 332 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03849/0.1042, allocations: 22.87 MB / 394.1 MB, free: 9.664 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.359/8.463, allocations: 0 / 394.1 MB, free: 9.664 MB / 362.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 10.21292142290622]