Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001516/0.001516, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001614/0.001614, allocations: 215.3 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 230.5 MB / 257.4 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.88 kB / 377.8 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2381, allocations: 53.41 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006309/0.2444, allocations: 4.517 MB / 435.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003263/0.2476, allocations: 1.594 MB / 437.3 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005438/0.2482, allocations: 19.88 kB / 437.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005256/0.2487, allocations: 134.7 kB / 437.4 MB, free: 404 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008687/0.2496, allocations: 277.7 kB / 437.7 MB, free: 124 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.2507, allocations: 426.8 kB / 438.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001514/0.2522, allocations: 1.178 MB / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003827/0.2526, allocations: 178.3 kB / 439.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000858/0.2535, allocations: 0.518 MB / 440 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008955/0.2544, allocations: 0.541 MB / 440.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002569/0.2546, allocations: 92 kB / 440.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004465/0.2551, allocations: 168 kB / 440.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003261/0.2554, allocations: 243.3 kB / 441 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006687/0.2561, allocations: 469.8 kB / 441.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001477/0.2576, allocations: 1.133 MB / 442.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2576, allocations: 0 / 442.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2576, allocations: 0 / 442.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.121e-05/0.2576, allocations: 0 / 442.6 MB, free: 11.19 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.003647/0.2612, allocations: 1.399 MB / 444 MB, free: 9.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.2613, allocations: 8.031 kB / 444 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000183/0.2615, allocations: 114.7 kB / 444.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005528/0.262, allocations: 124.3 kB / 444.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008301/0.2629, allocations: 400 kB / 444.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.042e-05/0.2629, allocations: 62.38 kB / 444.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.2631, allocations: 71.94 kB / 444.8 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.2648, allocations: 0.8075 MB / 445.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.509e-05/0.2648, allocations: 7.953 kB / 445.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.468e-05/0.2649, allocations: 32 kB / 445.6 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.2649, allocations: 16 kB / 445.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001949/0.2668, allocations: 0.8432 MB / 446.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004672/0.2715, allocations: 2.354 MB / 448.8 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.2733, allocations: 0.6888 MB / 449.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009338/0.2742, allocations: 420.2 kB / 449.9 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/0.2743, allocations: 17 kB / 450 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.2756, allocations: 0.5361 MB / 450.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.915e-06/0.2756, allocations: 0 / 450.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01162/0.2872, allocations: 3.787 MB / 454.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.2873, allocations: 68.41 kB / 454.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006401/0.288, allocations: 425.8 kB / 454.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.2881, allocations: 53.7 kB / 454.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002732/0.2883, allocations: 293.4 kB / 455.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003849/0.2887, allocations: 388.8 kB / 455.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003537/0.2891, allocations: 186.8 kB / 455.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.2893, allocations: 378.7 kB / 456 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.2903, allocations: 422.4 kB / 456.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/0.2913, allocations: 0.5033 MB / 457 MB, free: 12.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001662/0.293, allocations: 0.744 MB / 457.7 MB, free: 11.76 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.293, allocations: 4 kB / 457.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003175/0.2962, allocations: 1.284 MB / 459 MB, free: 10.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.2962, allocations: 7.984 kB / 459 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.2962, allocations: 4 kB / 459 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.2974, allocations: 0.5333 MB / 459.5 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008215/0.2982, allocations: 195.7 kB / 459.7 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00472/0.3029, allocations: 3.302 MB / 463 MB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.3041, allocations: 171.9 kB / 463.2 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.3043, allocations: 39.98 kB / 463.2 MB, free: 6.031 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.000506/0.3048, allocations: 229.7 kB / 463.5 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.305, allocations: 79.47 kB / 463.5 MB, free: 5.723 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000259/0.3053, allocations: 111.2 kB / 463.6 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.3053, allocations: 8 kB / 463.6 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3053, allocations: 0 / 463.6 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.3053, allocations: 7.984 kB / 463.7 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005133/0.3104, allocations: 2.425 MB / 466.1 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.3104, allocations: 3.984 kB / 466.1 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008352/0.3113, allocations: 175.7 kB / 466.3 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.3123, allocations: 0.5021 MB / 466.8 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.946e-05/0.3124, allocations: 35.95 kB / 466.8 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004042/0.3164, allocations: 3.084 MB / 469.9 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.3164, allocations: 4.031 kB / 469.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004024/0.3205, allocations: 1.761 MB / 471.6 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004754/0.3209, allocations: 163.4 kB / 471.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.3211, allocations: 32 kB / 471.8 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.3224, allocations: 203.7 kB / 472 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009251/0.3234, allocations: 396.2 kB / 472.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.3235, allocations: 43.95 kB / 472.5 MB, free: 12.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004111/0.3239, allocations: 287.1 kB / 472.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3239, allocations: 0 / 472.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009316/0.3248, allocations: 243.9 kB / 473 MB, free: 11.95 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.005631/0.3304, allocations: 2.606 MB / 475.6 MB, free: 9.406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002769/0.3332, allocations: 1.083 MB / 476.7 MB, free: 8.312 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.3332, allocations: 4.312 kB / 476.7 MB, free: 8.309 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.335, allocations: 0.7193 MB / 477.4 MB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009999/0.336, allocations: 151.9 kB / 477.5 MB, free: 7.438 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/0.3511, allocations: 7.288 MB / 484.8 MB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007702/0.3518, allocations: 0.944 MB / 485.8 MB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004128/0.3522, allocations: 89.7 kB / 485.9 MB, free: 14.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004503/0.3527, allocations: 271.3 kB / 486.1 MB, free: 14.63 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3527, allocations: 0 / 486.1 MB, free: 14.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07393/0.4266, allocations: 25.13 MB / 0.4993 GB, free: 5.609 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.13, allocations: 0 / 0.4993 GB, free: 5.609 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.738050278974697]