Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.001911/0.001911, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001927/0.001927, allocations: 187.1 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.399/1.399, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 43.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2509, allocations: 52.19 MB / 422.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01338/0.2642, allocations: 10.78 MB / 433.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008598/0.2728, allocations: 3.919 MB / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001649/0.2745, allocations: 79.62 kB / 437.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004877/0.2794, allocations: 2.266 MB / 439.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00509/0.2845, allocations: 1.89 MB / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001769/0.2862, allocations: 0.7097 MB / 442.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006663/0.2929, allocations: 4.238 MB / 446.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003426/0.2963, allocations: 2.462 MB / 449 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002693/0.299, allocations: 1.499 MB / 450.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003797/0.3028, allocations: 2.255 MB / 452.7 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009093/0.3037, allocations: 296 kB / 453 MB, free: 212 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002267/0.306, allocations: 0.9752 MB / 454 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002359/0.3083, allocations: 1.866 MB / 455.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003308/0.3117, allocations: 2.112 MB / 458 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008822/0.3205, allocations: 6.454 MB / 464.4 MB, free: 4.754 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3205, allocations: 0 / 464.4 MB, free: 4.754 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3205, allocations: 4 kB / 464.4 MB, free: 4.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002098/0.3207, allocations: 0 / 464.4 MB, free: 4.75 MB / 366.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.01022/0.3309, allocations: 4.668 MB / 469.1 MB, free: 24 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.331, allocations: 19.97 kB / 469.1 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001396/0.3324, allocations: 0.6912 MB / 469.8 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007636/0.34, allocations: 1.971 MB / 471.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006302/0.3463, allocations: 2.83 MB / 474.6 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002589/0.3466, allocations: 229.6 kB / 474.8 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001102/0.3477, allocations: 303.8 kB / 475.1 MB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01947/0.3671, allocations: 9.631 MB / 484.8 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001628/0.3673, allocations: 51.64 kB / 484.8 MB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007022/0.368, allocations: 139.9 kB / 485 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003189/0.3712, allocations: 1.923 MB / 486.9 MB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01635/0.3875, allocations: 7.633 MB / 494.5 MB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04818/0.4357, allocations: 37.55 MB / 0.5196 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006768/0.4425, allocations: 2.32 MB / 0.5219 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001492/0.444, allocations: 0.7987 MB / 0.5226 GB, free: 11.87 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006583/0.4506, allocations: 3.082 MB / 0.5256 GB, free: 8.758 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.066e-05/0.4506, allocations: 47.16 kB / 0.5257 GB, free: 8.703 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.829e-06/0.4506, allocations: 0 / 0.5257 GB, free: 8.703 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.241/0.6917, allocations: 9.095 MB / 0.5346 GB, free: 108 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.6917, allocations: 151.1 kB / 0.5347 GB, free: 107.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006188/0.6979, allocations: 3.944 MB / 0.5386 GB, free: 106.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002261/0.6981, allocations: 46.42 kB / 0.5386 GB, free: 106.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001565/0.6997, allocations: 3.22 MB / 0.5418 GB, free: 105 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005093/0.7002, allocations: 0.6323 MB / 0.5424 GB, free: 104.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001204/0.7014, allocations: 1.168 MB / 0.5435 GB, free: 104.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.829e-05/0.7015, allocations: 304.7 kB / 0.5438 GB, free: 103.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002212/0.7037, allocations: 1.564 MB / 0.5453 GB, free: 103.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003362/0.707, allocations: 5.342 MB / 0.5505 GB, free: 97.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005962/0.713, allocations: 7.515 MB / 0.5579 GB, free: 90.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-05/0.7131, allocations: 39.09 kB / 0.5579 GB, free: 90.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.009933/0.723, allocations: 6.631 MB / 0.5644 GB, free: 86.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.986e-05/0.7231, allocations: 60 kB / 0.5645 GB, free: 86.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001498/0.7233, allocations: 136 kB / 0.5646 GB, free: 85.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001315/0.7234, allocations: 176 kB / 0.5648 GB, free: 85.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003656/0.7271, allocations: 1.364 MB / 0.5661 GB, free: 84.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001477/0.7272, allocations: 270.7 kB / 0.5663 GB, free: 84.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003647/0.7309, allocations: 291.4 kB / 0.5666 GB, free: 83.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005881/0.7315, allocations: 364 kB / 0.567 GB, free: 83.57 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.002617/0.7341, allocations: 1.966 MB / 0.5689 GB, free: 81.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005272/0.7346, allocations: 357.6 kB / 0.5692 GB, free: 81.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.7364, allocations: 1.257 MB / 0.5705 GB, free: 80 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-05/0.7365, allocations: 19.36 kB / 0.5705 GB, free: 79.98 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.7365, allocations: 2.812 kB / 0.5705 GB, free: 79.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.7365, allocations: 3.984 kB / 0.5705 GB, free: 79.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008429/0.7449, allocations: 5.72 MB / 0.5761 GB, free: 73.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.226e-05/0.7449, allocations: 20 kB / 0.5761 GB, free: 73.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000885/0.7458, allocations: 283.5 kB / 0.5764 GB, free: 73.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-05/0.7458, allocations: 24 kB / 0.5764 GB, free: 73.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.337e-05/0.7459, allocations: 44 kB / 0.5764 GB, free: 73.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-05/0.7459, allocations: 39.86 kB / 0.5765 GB, free: 73.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.088e-05/0.746, allocations: 31.81 kB / 0.5765 GB, free: 73.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002933/0.7489, allocations: 3.243 MB / 0.5797 GB, free: 70.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009164/0.7498, allocations: 353.5 kB / 0.58 GB, free: 69.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005346/0.7503, allocations: 47.98 kB / 0.58 GB, free: 69.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.7516, allocations: 59.95 kB / 0.5801 GB, free: 69.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.7518, allocations: 151.3 kB / 0.5802 GB, free: 69.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.354e-05/0.7519, allocations: 68.47 kB / 0.5803 GB, free: 69.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003356/0.7553, allocations: 2.446 MB / 0.5827 GB, free: 66.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.7553, allocations: 0 / 0.5827 GB, free: 66.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004406/0.7597, allocations: 0.8631 MB / 0.5835 GB, free: 66.09 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.00353/0.7632, allocations: 3.9 MB / 0.5873 GB, free: 61.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004939/0.7681, allocations: 3.527 MB / 0.5908 GB, free: 58.44 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.619e-05/0.7681, allocations: 0 / 0.5908 GB, free: 58.44 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008565/0.769, allocations: 0.6958 MB / 0.5915 GB, free: 57.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002862/0.7719, allocations: 453.2 kB / 0.5919 GB, free: 57.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04668/0.8185, allocations: 40.38 MB / 0.6313 GB, free: 10.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002943/0.8215, allocations: 3.103 MB / 0.6344 GB, free: 7.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003414/0.8249, allocations: 1.764 MB / 0.6361 GB, free: 5.727 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001877/0.8268, allocations: 1.788 MB / 0.6378 GB, free: 3.938 MB / 446.1 MB Notification: Performance of SimCode: time 1.493e-06/0.8268, allocations: 3.938 kB / 0.6378 GB, free: 3.934 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1264/0.9532, allocations: 61.19 MB / 0.6976 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.69/22.65, allocations: 7.859 kB / 0.6976 GB, free: 7.164 MB / 0.4981 GB " [Timeout remaining time 637] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.26802529300039]