Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.001323/0.001323, 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.001486/0.001486, allocations: 214.2 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.456/1.456, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 67.84 kB / 377.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2756, allocations: 53.4 MB / 431.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01306/0.2886, allocations: 10.75 MB / 441.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008429/0.2971, allocations: 3.927 MB / 445.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/0.2986, allocations: 79.62 kB / 445.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004443/0.303, allocations: 2.266 MB / 448.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004927/0.3079, allocations: 1.852 MB / 450.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001644/0.3096, allocations: 0.7135 MB / 450.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006803/0.3164, allocations: 4.312 MB / 455.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003537/0.3199, allocations: 2.451 MB / 457.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002509/0.3224, allocations: 1.487 MB / 459 MB, free: 10.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00355/0.326, allocations: 2.258 MB / 461.3 MB, free: 8.414 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008545/0.3268, allocations: 292 kB / 461.6 MB, free: 8.129 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002241/0.3291, allocations: 0.9518 MB / 462.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002414/0.3315, allocations: 1.854 MB / 464.4 MB, free: 5.316 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003473/0.335, allocations: 2.081 MB / 466.5 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009241/0.3442, allocations: 6.399 MB / 472.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3442, allocations: 0 / 472.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3442, allocations: 0 / 472.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002395/0.3445, allocations: 4 kB / 472.9 MB, free: 12.79 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.3552, allocations: 4.629 MB / 477.5 MB, free: 8.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3553, allocations: 12.03 kB / 477.5 MB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001413/0.3567, allocations: 0.699 MB / 478.2 MB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00746/0.3642, allocations: 1.96 MB / 480.2 MB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005982/0.3701, allocations: 2.623 MB / 482.8 MB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002426/0.3704, allocations: 229.6 kB / 483 MB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009196/0.3713, allocations: 295.8 kB / 483.3 MB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0175/0.3888, allocations: 9.662 MB / 493 MB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001431/0.3889, allocations: 43.61 kB / 493 MB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004349/0.3894, allocations: 147.9 kB / 493.1 MB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003028/0.3924, allocations: 1.915 MB / 495.1 MB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01594/0.4083, allocations: 7.645 MB / 0.4909 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04966/0.458, allocations: 37.55 MB / 0.5276 GB, free: 7.297 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006701/0.4647, allocations: 2.34 MB / 0.5299 GB, free: 4.922 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/0.4661, allocations: 0.8012 MB / 0.5307 GB, free: 4.113 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007271/0.4734, allocations: 3.086 MB / 0.5337 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.337e-05/0.4734, allocations: 47.22 kB / 0.5337 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.989e-06/0.4734, allocations: 0 / 0.5337 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2449/0.7183, allocations: 9.129 MB / 0.5426 GB, free: 98.19 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.7184, allocations: 148.5 kB / 0.5428 GB, free: 98.03 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004371/0.7228, allocations: 3.936 MB / 0.5466 GB, free: 96.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001236/0.7229, allocations: 45.61 kB / 0.5467 GB, free: 96.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.7242, allocations: 3.216 MB / 0.5498 GB, free: 94.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003465/0.7245, allocations: 0.6273 MB / 0.5504 GB, free: 94.03 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009268/0.7255, allocations: 1.166 MB / 0.5516 GB, free: 93.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.364e-05/0.7255, allocations: 301.1 kB / 0.5518 GB, free: 93.15 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001876/0.7274, allocations: 1.57 MB / 0.5534 GB, free: 92.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003038/0.7304, allocations: 5.339 MB / 0.5586 GB, free: 87.08 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005351/0.7358, allocations: 7.536 MB / 0.5659 GB, free: 78.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-05/0.7358, allocations: 36 kB / 0.566 GB, free: 78.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008793/0.7446, allocations: 6.645 MB / 0.5725 GB, free: 71.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.35e-05/0.7447, allocations: 66.38 kB / 0.5725 GB, free: 71.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.7448, allocations: 136 kB / 0.5727 GB, free: 71.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001175/0.7449, allocations: 176 kB / 0.5728 GB, free: 71.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003283/0.7482, allocations: 1.377 MB / 0.5742 GB, free: 70.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001234/0.7483, allocations: 263 kB / 0.5744 GB, free: 69.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003512/0.7518, allocations: 291.7 kB / 0.5747 GB, free: 69.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003465/0.7522, allocations: 356 kB / 0.575 GB, free: 69.29 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.002311/0.7545, allocations: 1.981 MB / 0.577 GB, free: 67.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006126/0.7551, allocations: 353.6 kB / 0.5773 GB, free: 66.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005975/0.7557, allocations: 401.6 kB / 0.5777 GB, free: 66.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.462e-05/0.7557, allocations: 17.88 kB / 0.5777 GB, free: 66.53 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.559e-05/0.7558, allocations: 0.5 kB / 0.5777 GB, free: 66.53 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.7558, allocations: 7.969 kB / 0.5777 GB, free: 66.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007479/0.7633, allocations: 5.73 MB / 0.5833 GB, free: 60.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.046e-05/0.7633, allocations: 16 kB / 0.5833 GB, free: 60.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008677/0.7641, allocations: 278.2 kB / 0.5836 GB, free: 60.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.882e-05/0.7642, allocations: 24 kB / 0.5836 GB, free: 60.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.138e-05/0.7642, allocations: 55.98 kB / 0.5837 GB, free: 60.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-05/0.7643, allocations: 35.86 kB / 0.5837 GB, free: 60.11 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.224e-05/0.7643, allocations: 28.25 kB / 0.5837 GB, free: 60.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002833/0.7671, allocations: 3.253 MB / 0.5869 GB, free: 56.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006718/0.7678, allocations: 345.5 kB / 0.5872 GB, free: 56.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003043/0.7681, allocations: 55.92 kB / 0.5873 GB, free: 56.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009993/0.7691, allocations: 59.95 kB / 0.5874 GB, free: 56.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.7692, allocations: 151.3 kB / 0.5875 GB, free: 55.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.152e-05/0.7693, allocations: 67.75 kB / 0.5876 GB, free: 55.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002884/0.7722, allocations: 2.447 MB / 0.59 GB, free: 53.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7722, allocations: 0 / 0.59 GB, free: 53.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004298/0.7765, allocations: 0.8436 MB / 0.5908 GB, free: 52.64 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.003147/0.7796, allocations: 3.918 MB / 0.5946 GB, free: 48.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004764/0.7844, allocations: 3.526 MB / 0.598 GB, free: 44.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/0.7844, allocations: 8.25 kB / 0.5981 GB, free: 44.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008117/0.7852, allocations: 0.6931 MB / 0.5987 GB, free: 44.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003299/0.7885, allocations: 455.7 kB / 0.5992 GB, free: 43.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04632/0.8348, allocations: 40.39 MB / 0.6386 GB, free: 13.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003899/0.8387, allocations: 3.093 MB / 0.6416 GB, free: 10.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004118/0.8428, allocations: 1.76 MB / 0.6434 GB, free: 8.246 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002579/0.8454, allocations: 1.792 MB / 0.6451 GB, free: 6.453 MB / 462.1 MB Notification: Performance of SimCode: time 1.223e-06/0.8454, allocations: 0 / 0.6451 GB, free: 6.453 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1292/0.9746, allocations: 61.07 MB / 0.7047 GB, free: 9.707 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.78/22.76, allocations: 0 / 0.7047 GB, free: 9.707 MB / 0.5137 GB " [Timeout remaining time 637] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.41374727099901]