Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.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.0007858/0.0007858, 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.000756/0.000756, allocations: 149.1 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.8689/0.8689, allocations: 173.4 MB / 200.4 MB, free: 9.445 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.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.974e-05/2.155e-05, allocations: 5.516 kB / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.002571/0.002592, allocations: 2.253 MB / 320.7 MB, free: 4.117 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006414/0.003234, allocations: 235.1 kB / 320.9 MB, free: 3.887 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.003349, allocations: 11.94 kB / 320.9 MB, free: 3.875 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.003483, allocations: 43.52 kB / 321 MB, free: 3.832 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.003613, allocations: 91.14 kB / 321 MB, free: 3.742 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.003781, allocations: 59.92 kB / 321.1 MB, free: 3.684 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.004012, allocations: 302.4 kB / 321.4 MB, free: 3.387 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.004167, allocations: 81.91 kB / 321.5 MB, free: 3.301 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.004306, allocations: 167.7 kB / 321.6 MB, free: 3.137 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.004411, allocations: 83.77 kB / 321.7 MB, free: 3.055 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.395e-05/0.004445, allocations: 20 kB / 321.7 MB, free: 3.035 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.428e-05/0.004469, allocations: 27.94 kB / 321.8 MB, free: 3.008 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.423e-05/0.004504, allocations: 47.83 kB / 321.8 MB, free: 2.961 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.546e-05/0.004569, allocations: 91.81 kB / 321.9 MB, free: 2.871 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00025/0.004819, allocations: 291 kB / 322.2 MB, free: 2.586 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.004822, allocations: 4 kB / 322.2 MB, free: 2.582 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.004823, allocations: 4 kB / 322.2 MB, free: 2.578 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.004828, allocations: 0 / 322.2 MB, free: 2.578 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0006673/0.005496, allocations: 473.5 kB / 322.7 MB, free: 2.082 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.005535, allocations: 8.922 kB / 322.7 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.751e-05/0.005583, allocations: 62.72 kB / 322.7 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.325e-05/0.005626, allocations: 40.75 kB / 322.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.005864, allocations: 178.1 kB / 322.9 MB, free: 1.762 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.00588, allocations: 20.88 kB / 323 MB, free: 1.742 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.573e-05/0.005916, allocations: 28.33 kB / 323 MB, free: 1.715 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.006194, allocations: 247.1 kB / 323.2 MB, free: 1.457 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.006207, allocations: 4.188 kB / 323.2 MB, free: 1.453 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.006224, allocations: 8.375 kB / 323.2 MB, free: 1.445 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.006232, allocations: 12.12 kB / 323.3 MB, free: 1.434 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001885/0.00642, allocations: 163.7 kB / 323.4 MB, free: 1.273 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008406/0.007261, allocations: 0.7106 MB / 324.1 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003571/0.007618, allocations: 271.9 kB / 324.4 MB, free: 224 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.007774, allocations: 122.5 kB / 324.5 MB, free: 92 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.007791, allocations: 4 kB / 324.5 MB, free: 88 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.007811, allocations: 46.44 kB / 324.6 MB, free: 32 kB / 282.7 MB Notification: Performance of pre-optimization done (n=33): time 1.804e-06/0.007812, allocations: 0 / 324.6 MB, free: 32 kB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.001799/0.009611, allocations: 1.505 MB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.009654, allocations: 114.7 kB / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.009778, allocations: 195.8 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.009794, allocations: 29.7 kB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.009856, allocations: 140.9 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.853e-05/0.009935, allocations: 166.5 kB / 326.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.434e-05/0.009999, allocations: 74.2 kB / 326.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.043e-05/0.01008, allocations: 338.8 kB / 327.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.01018, allocations: 92.95 kB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.01031, allocations: 155 kB / 327.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002676/0.01058, allocations: 275 kB / 327.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.01058, allocations: 4 kB / 327.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0003285/0.01091, allocations: 347.7 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.01092, allocations: 4 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.01093, allocations: 0 / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.01094, allocations: 7.938 kB / 328 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001874/0.01113, allocations: 99.83 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.01114, allocations: 4 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.821e-05/0.0112, allocations: 12 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.01121, allocations: 15.98 kB / 328.1 MB, free: 12.24 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.72e-05/0.01131, allocations: 150.7 kB / 328.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.655e-05/0.01136, allocations: 27.81 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.523e-05/0.0114, allocations: 49.77 kB / 328.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.01141, allocations: 7.938 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.01141, allocations: 0 / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.01142, allocations: 3.984 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008749/0.01229, allocations: 0.9796 MB / 329.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.01229, allocations: 4.031 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/0.01249, allocations: 99.83 kB / 329.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.0125, allocations: 4 kB / 329.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.01252, allocations: 8 kB / 329.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.01252, allocations: 7.938 kB / 329.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.01252, allocations: 4 kB / 329.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000516/0.01304, allocations: 0.7175 MB / 330.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.83e-05/0.01307, allocations: 19.86 kB / 330.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.01309, allocations: 23.98 kB / 330.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.01321, allocations: 12 kB / 330.2 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.349e-05/0.01324, allocations: 31.89 kB / 330.2 MB, free: 9.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.01326, allocations: 16 kB / 330.3 MB, free: 9.949 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.14e-05/0.01333, allocations: 135.2 kB / 330.4 MB, free: 9.816 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.01333, allocations: 0 / 330.4 MB, free: 9.816 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002909/0.01362, allocations: 72 kB / 330.5 MB, free: 9.746 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper2.s_rel,damper2.v_rel,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006815/0.0143, allocations: 1.271 MB / 331.7 MB, free: 8.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000325/0.01463, allocations: 263.1 kB / 332 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.01463, allocations: 0 / 332 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.01475, allocations: 131.7 kB / 332.1 MB, free: 8.035 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004773/0.01523, allocations: 79.78 kB / 332.2 MB, free: 7.965 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002673/0.0179, allocations: 3.152 MB / 335.3 MB, free: 4.625 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001181/0.01802, allocations: 159.8 kB / 335.5 MB, free: 4.445 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.439e-05/0.01811, allocations: 34.95 kB / 335.5 MB, free: 4.414 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.01821, allocations: 92.47 kB / 335.6 MB, free: 4.324 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01821, allocations: 7.938 kB / 335.6 MB, free: 4.316 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.03874, allocations: 6.825 MB / 342.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.716/6.755, allocations: 4 kB / 342.5 MB, free: 13.66 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Damper/Damper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.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: 8.342769175767899]