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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001859/0.001859, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002374/0.002374, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.454/2.454, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001768, allocations: 43.12 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1571, allocations: 49.43 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01851/0.1757, allocations: 10.72 MB / 360.9 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01181/0.1875, allocations: 3.873 MB / 364.7 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003062/0.1907, allocations: 63.81 kB / 364.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006832/0.1976, allocations: 2.223 MB / 367 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008627/0.2063, allocations: 1.829 MB / 368.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00322/0.2095, allocations: 0.7058 MB / 369.6 MB, free: 0.832 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.302/0.5116, allocations: 4.23 MB / 373.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007088/0.5187, allocations: 2.901 MB / 376.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00522/0.524, allocations: 1.478 MB / 378.2 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006312/0.5304, allocations: 2.079 MB / 380.3 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00233/0.5328, allocations: 292.4 kB / 380.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00531/0.5381, allocations: 0.9425 MB / 381.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005216/0.5434, allocations: 1.812 MB / 383.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007105/0.5505, allocations: 2.105 MB / 385.4 MB, free: 7.348 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01372/0.5643, allocations: 6.194 MB / 391.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.06e-05/0.5644, allocations: 1.375 kB / 391.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.5644, allocations: 0 / 391.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003322/0.5648, allocations: 1.125 kB / 391.6 MB, free: 4.551 MB / 302.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.01884/0.5836, allocations: 4.633 MB / 396.2 MB, free: 1.441 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.215e-05/0.5837, allocations: 9.031 kB / 396.2 MB, free: 1.441 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003175/0.5869, allocations: 0.6935 MB / 396.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01295/0.5999, allocations: 1.937 MB / 398.9 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009553/0.6095, allocations: 2.848 MB / 401.7 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003595/0.6099, allocations: 231.6 kB / 401.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002009/0.6119, allocations: 298 kB / 402.2 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03102/0.643, allocations: 9.639 MB / 411.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002176/0.6432, allocations: 48.14 kB / 411.9 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009564/0.6442, allocations: 140.4 kB / 412.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005411/0.6496, allocations: 1.927 MB / 414 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02805/0.6777, allocations: 7.635 MB / 421.6 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07996/0.7578, allocations: 37.74 MB / 459.4 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01186/0.7697, allocations: 2.886 MB / 462.2 MB, free: 188 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002653/0.7724, allocations: 0.8695 MB / 463.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0113/0.7837, allocations: 3.764 MB / 466.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.61e-05/0.7839, allocations: 51.22 kB / 466.9 MB, free: 11.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.099e-06/0.7839, allocations: 0 / 466.9 MB, free: 11.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.04021/0.8241, allocations: 9.03 MB / 476 MB, free: 2.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.8243, allocations: 141.5 kB / 476.1 MB, free: 1.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01146/0.8358, allocations: 3.937 MB / 480 MB, free: 14.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000489/0.8363, allocations: 52.67 kB / 480.1 MB, free: 14.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004176/0.8405, allocations: 3.081 MB / 483.2 MB, free: 10.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001158/0.8417, allocations: 0.6087 MB / 483.8 MB, free: 10.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004186/0.8459, allocations: 1.153 MB / 484.9 MB, free: 9.176 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.8461, allocations: 305.1 kB / 485.2 MB, free: 8.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005297/0.8515, allocations: 1.569 MB / 486.8 MB, free: 7.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01042/0.8619, allocations: 5.337 MB / 492.1 MB, free: 76 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01354/0.8755, allocations: 7.515 MB / 499.7 MB, free: 6.703 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001732/0.8758, allocations: 44 kB / 499.7 MB, free: 6.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.02086/0.8966, allocations: 6.614 MB / 0.4944 GB, free: 44 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002914/0.897, allocations: 64.05 kB / 0.4945 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003764/0.8974, allocations: 132 kB / 0.4946 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003462/0.8978, allocations: 176 kB / 0.4948 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007387/0.9052, allocations: 1.381 MB / 0.4961 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000394/0.9056, allocations: 259 kB / 0.4964 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007367/0.913, allocations: 282 kB / 0.4967 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001526/0.9146, allocations: 364 kB / 0.497 GB, free: 13.41 MB / 430.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.00676/0.9214, allocations: 1.986 MB / 0.4989 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/0.9225, allocations: 335.6 kB / 0.4993 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003973/0.9265, allocations: 1.246 MB / 0.5005 GB, free: 9.824 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.315e-05/0.9266, allocations: 19.94 kB / 0.5005 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/0.9267, allocations: 0 / 0.5005 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.871e-05/0.9267, allocations: 7.984 kB / 0.5005 GB, free: 9.797 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0198/0.9465, allocations: 5.746 MB / 0.5061 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-05/0.9466, allocations: 24.02 kB / 0.5061 GB, free: 3.738 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001721/0.9484, allocations: 275.5 kB / 0.5064 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.449e-05/0.9485, allocations: 27.94 kB / 0.5064 GB, free: 3.441 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002619/0.9487, allocations: 55.98 kB / 0.5065 GB, free: 3.387 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.883e-05/0.9488, allocations: 35.86 kB / 0.5065 GB, free: 3.352 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.332e-05/0.9489, allocations: 23.94 kB / 0.5065 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008196/0.9571, allocations: 3.22 MB / 0.5097 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002056/0.9592, allocations: 408.6 kB / 0.5101 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001188/0.9604, allocations: 51.98 kB / 0.5101 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002684/0.9631, allocations: 58.97 kB / 0.5102 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003598/0.9635, allocations: 147.4 kB / 0.5103 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001998/0.9637, allocations: 67.98 kB / 0.5104 GB, free: 15.11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008082/0.9718, allocations: 2.443 MB / 0.5128 GB, free: 12.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.9718, allocations: 0 / 0.5128 GB, free: 12.69 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01015/0.982, allocations: 0.8613 MB / 0.5136 GB, free: 11.83 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.008687/0.9907, allocations: 3.902 MB / 0.5174 GB, free: 7.664 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01075/1.002, allocations: 3.791 MB / 0.5211 GB, free: 3.902 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.388e-05/1.002, allocations: 4 kB / 0.5211 GB, free: 3.898 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/1.003, allocations: 0.7233 MB / 0.5218 GB, free: 3.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006223/1.01, allocations: 466.4 kB / 0.5223 GB, free: 2.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3906/1.4, allocations: 45.52 MB / 0.5667 GB, free: 118.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005917/1.406, allocations: 3.094 MB / 0.5698 GB, free: 116.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007642/1.414, allocations: 1.767 MB / 0.5715 GB, free: 115.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0041/1.418, allocations: 1.792 MB / 0.5732 GB, free: 113.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.362e-06/1.418, allocations: 3.281 kB / 0.5732 GB, free: 113.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1512/1.569, allocations: 59.92 MB / 0.6317 GB, free: 54.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.1/17.67, allocations: 3.984 kB / 0.6318 GB, free: 54.21 MB / 446.1 MB (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.002 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) 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) Reference file matches