Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.001658/0.001658, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 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.00211/0.00211, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.525/1.525, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002253/0.002253, allocations: 51.92 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2733, allocations: 53.35 MB / 431.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.0135/0.2868, allocations: 10.75 MB / 441.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009809/0.2966, allocations: 3.931 MB / 445.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002198/0.2988, allocations: 75.62 kB / 445.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004891/0.3037, allocations: 2.262 MB / 448.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005004/0.3087, allocations: 1.856 MB / 450 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002018/0.3107, allocations: 0.7058 MB / 450.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00728/0.318, allocations: 4.319 MB / 455 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003792/0.3218, allocations: 2.45 MB / 457.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003158/0.3249, allocations: 1.491 MB / 459 MB, free: 10.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004037/0.329, allocations: 2.258 MB / 461.2 MB, free: 8.586 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008974/0.3299, allocations: 292 kB / 461.5 MB, free: 8.301 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002091/0.332, allocations: 0.9479 MB / 462.5 MB, free: 7.352 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002333/0.3343, allocations: 1.85 MB / 464.3 MB, free: 5.496 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003492/0.3378, allocations: 2.089 MB / 466.4 MB, free: 3.395 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009177/0.347, allocations: 6.392 MB / 472.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.894e-06/0.347, allocations: 0 / 472.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.378e-06/0.347, allocations: 8 kB / 472.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002305/0.3472, allocations: 0 / 472.8 MB, free: 12.97 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01079/0.358, allocations: 4.633 MB / 477.4 MB, free: 8.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.358, allocations: 8.031 kB / 477.5 MB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001408/0.3595, allocations: 0.6951 MB / 478.2 MB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007661/0.3671, allocations: 1.967 MB / 480.1 MB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00654/0.3737, allocations: 2.615 MB / 482.7 MB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/0.3739, allocations: 225.6 kB / 483 MB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/0.3749, allocations: 303.7 kB / 483.3 MB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01824/0.3932, allocations: 9.655 MB / 492.9 MB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001403/0.3933, allocations: 51.59 kB / 493 MB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004842/0.3938, allocations: 147.9 kB / 493.1 MB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003139/0.3969, allocations: 1.915 MB / 495 MB, free: 5.863 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01659/0.4135, allocations: 7.641 MB / 0.4909 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05027/0.4638, allocations: 37.56 MB / 0.5276 GB, free: 7.477 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006865/0.4707, allocations: 2.336 MB / 0.5298 GB, free: 5.102 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/0.472, allocations: 0.7987 MB / 0.5306 GB, free: 4.293 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006274/0.4783, allocations: 3.09 MB / 0.5336 GB, free: 1.172 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.4784, allocations: 43.22 kB / 0.5337 GB, free: 1.121 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.667e-06/0.4784, allocations: 0 / 0.5337 GB, free: 1.121 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2308/0.7092, allocations: 9.142 MB / 0.5426 GB, free: 98.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.256e-05/0.7092, allocations: 146.3 kB / 0.5427 GB, free: 98.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004412/0.7137, allocations: 3.934 MB / 0.5466 GB, free: 96.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001668/0.7138, allocations: 48.8 kB / 0.5466 GB, free: 96.81 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00153/0.7154, allocations: 3.213 MB / 0.5498 GB, free: 94.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004809/0.7158, allocations: 0.6314 MB / 0.5504 GB, free: 94.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/0.7169, allocations: 1.163 MB / 0.5515 GB, free: 93.58 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.448e-05/0.717, allocations: 306.5 kB / 0.5518 GB, free: 93.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/0.719, allocations: 1.566 MB / 0.5533 GB, free: 92.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003019/0.722, allocations: 5.34 MB / 0.5586 GB, free: 87.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00582/0.7278, allocations: 7.531 MB / 0.5659 GB, free: 78.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.368e-05/0.7279, allocations: 40 kB / 0.5659 GB, free: 78.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.009539/0.7375, allocations: 6.632 MB / 0.5724 GB, free: 72.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.17e-05/0.7375, allocations: 75.95 kB / 0.5725 GB, free: 72.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/0.7376, allocations: 132 kB / 0.5726 GB, free: 72.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001229/0.7378, allocations: 176 kB / 0.5728 GB, free: 71.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003553/0.7413, allocations: 1.372 MB / 0.5741 GB, free: 70.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001364/0.7414, allocations: 265.8 kB / 0.5744 GB, free: 70.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003646/0.7451, allocations: 295.7 kB / 0.5747 GB, free: 69.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004338/0.7455, allocations: 360.6 kB / 0.575 GB, free: 69.59 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 735 * Array equations: 3 * 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 0.002357/0.7479, allocations: 1.974 MB / 0.5769 GB, free: 67.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005798/0.7485, allocations: 357.6 kB / 0.5773 GB, free: 67.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006027/0.7491, allocations: 397.6 kB / 0.5777 GB, free: 66.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-05/0.7491, allocations: 20 kB / 0.5777 GB, free: 66.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/0.7491, allocations: 0 / 0.5777 GB, free: 66.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.7491, allocations: 11.97 kB / 0.5777 GB, free: 66.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00768/0.7568, allocations: 5.726 MB / 0.5833 GB, free: 60.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-05/0.7568, allocations: 16 kB / 0.5833 GB, free: 60.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008885/0.7577, allocations: 283.6 kB / 0.5836 GB, free: 60.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.912e-05/0.7577, allocations: 28 kB / 0.5836 GB, free: 60.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.33e-05/0.7578, allocations: 47.98 kB / 0.5836 GB, free: 60.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.847e-05/0.7578, allocations: 39.86 kB / 0.5837 GB, free: 60.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/0.7578, allocations: 27.88 kB / 0.5837 GB, free: 60.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003077/0.7609, allocations: 3.256 MB / 0.5869 GB, free: 56.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008463/0.7618, allocations: 349.5 kB / 0.5872 GB, free: 56.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003443/0.7621, allocations: 55.98 kB / 0.5873 GB, free: 56.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.7632, allocations: 59.95 kB / 0.5873 GB, free: 56.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.7633, allocations: 151.3 kB / 0.5875 GB, free: 56.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.352e-05/0.7634, allocations: 64 kB / 0.5875 GB, free: 56.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002924/0.7663, allocations: 2.438 MB / 0.5899 GB, free: 53.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7663, allocations: 0 / 0.5899 GB, free: 53.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004494/0.7708, allocations: 0.8436 MB / 0.5907 GB, free: 52.95 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * 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.003385/0.7742, allocations: 3.919 MB / 0.5946 GB, free: 48.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005085/0.7793, allocations: 3.53 MB / 0.598 GB, free: 45.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.406e-05/0.7793, allocations: 5.562 kB / 0.598 GB, free: 45.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008335/0.7801, allocations: 0.6909 MB / 0.5987 GB, free: 44.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/0.783, allocations: 449.5 kB / 0.5991 GB, free: 44.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04584/0.8288, allocations: 40.39 MB / 0.6386 GB, free: 13.45 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004524/0.8333, allocations: 3.097 MB / 0.6416 GB, free: 10.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004473/0.8378, allocations: 1.768 MB / 0.6433 GB, free: 8.547 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003014/0.8408, allocations: 1.784 MB / 0.6451 GB, free: 6.762 MB / 462.1 MB Notification: Performance of SimCode: time 2.044e-06/0.8408, allocations: 0 / 0.6451 GB, free: 6.762 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1305/0.9713, allocations: 61.09 MB / 0.7047 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.32/22.29, allocations: 11 kB / 0.7047 GB, free: 10.11 MB / 0.5137 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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: 25.155574655000237]