Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_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.001962/0.001962, allocations: 114 kB / 17.74 MB, free: 5.355 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.002165/0.002165, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 59.91 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08808/0.08976, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1775/0.2673, allocations: 10.75 MB / 385.4 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007729/0.2751, allocations: 3.873 MB / 389.3 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002356/0.2776, allocations: 67.75 kB / 389.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004586/0.2822, allocations: 2.234 MB / 391.6 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006263/0.2885, allocations: 1.84 MB / 393.4 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002366/0.2909, allocations: 0.7121 MB / 394.1 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007695/0.2986, allocations: 4.261 MB / 398.4 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004821/0.3034, allocations: 2.92 MB / 401.3 MB, free: 172 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00361/0.3071, allocations: 1.487 MB / 402.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004194/0.3113, allocations: 2.095 MB / 404.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001263/0.3126, allocations: 291.6 kB / 405.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003012/0.3156, allocations: 0.936 MB / 406.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002758/0.3184, allocations: 1.817 MB / 407.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003168/0.3216, allocations: 2.111 MB / 410 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009168/0.3308, allocations: 6.482 MB / 416.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3308, allocations: 0 / 416.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.298e-06/0.3308, allocations: 0 / 416.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002266/0.331, allocations: 3.938 kB / 416.5 MB, free: 5.898 MB / 334.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.01073/0.3418, allocations: 4.779 MB / 421.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.3418, allocations: 11.97 kB / 421.3 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001289/0.3431, allocations: 0.6956 MB / 422 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007519/0.3507, allocations: 1.967 MB / 424 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006498/0.3572, allocations: 3.2 MB / 427.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002282/0.3575, allocations: 233.6 kB / 427.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008144/0.3583, allocations: 299.8 kB / 427.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01741/0.3757, allocations: 9.631 MB / 437.3 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001218/0.3759, allocations: 51.58 kB / 437.4 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004532/0.3763, allocations: 151.9 kB / 437.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002968/0.3793, allocations: 1.915 MB / 439.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01615/0.3955, allocations: 7.637 MB / 447.1 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04783/0.4433, allocations: 37.68 MB / 484.8 MB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00696/0.4503, allocations: 2.894 MB / 487.7 MB, free: 12.51 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.4518, allocations: 0.8733 MB / 488.5 MB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006279/0.4581, allocations: 3.776 MB / 492.3 MB, free: 7.652 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.4582, allocations: 47.22 kB / 492.4 MB, free: 7.594 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.577e-06/0.4582, allocations: 0 / 492.4 MB, free: 7.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02322/0.4814, allocations: 9.362 MB / 0.49 GB, free: 14.13 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.4815, allocations: 149.5 kB / 0.4901 GB, free: 13.95 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006279/0.4878, allocations: 3.975 MB / 0.494 GB, free: 9.945 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002239/0.4881, allocations: 45.7 kB / 0.494 GB, free: 9.895 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00288/0.491, allocations: 3.221 MB / 0.4972 GB, free: 6.645 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009325/0.4919, allocations: 0.632 MB / 0.4978 GB, free: 6.008 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001784/0.4937, allocations: 1.164 MB / 0.4989 GB, free: 4.832 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.4939, allocations: 304.9 kB / 0.4992 GB, free: 4.535 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002846/0.4968, allocations: 1.569 MB / 0.5008 GB, free: 2.961 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006523/0.5033, allocations: 5.338 MB / 0.506 GB, free: 11.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01071/0.5141, allocations: 7.526 MB / 0.5133 GB, free: 2.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/0.5142, allocations: 40 kB / 0.5134 GB, free: 2.281 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01403/0.5282, allocations: 6.63 MB / 0.5198 GB, free: 11.64 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.756e-05/0.5284, allocations: 64 kB / 0.5199 GB, free: 11.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000162/0.5286, allocations: 132 kB / 0.52 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001867/0.5288, allocations: 176 kB / 0.5202 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004368/0.5331, allocations: 1.377 MB / 0.5215 GB, free: 9.898 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002375/0.5334, allocations: 259 kB / 0.5218 GB, free: 9.645 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004034/0.5374, allocations: 287.7 kB / 0.522 GB, free: 9.363 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007201/0.5382, allocations: 364 kB / 0.5224 GB, free: 9.008 MB / 462.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.004418/0.5426, allocations: 1.978 MB / 0.5243 GB, free: 7.016 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009131/0.5435, allocations: 361.6 kB / 0.5247 GB, free: 6.66 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002339/0.5459, allocations: 1.246 MB / 0.5259 GB, free: 5.395 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.844e-05/0.5459, allocations: 16 kB / 0.5259 GB, free: 5.379 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.5459, allocations: 4 kB / 0.5259 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.79e-05/0.5459, allocations: 11.97 kB / 0.5259 GB, free: 5.363 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.5563, allocations: 5.753 MB / 0.5315 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.431e-05/0.5564, allocations: 24.06 kB / 0.5316 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009849/0.5574, allocations: 279.5 kB / 0.5318 GB, free: 14.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.941e-05/0.5574, allocations: 24.72 kB / 0.5318 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.5575, allocations: 55.81 kB / 0.5319 GB, free: 14.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-05/0.5575, allocations: 39.86 kB / 0.5319 GB, free: 14.86 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.472e-05/0.5576, allocations: 27.88 kB / 0.532 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00448/0.5621, allocations: 3.241 MB / 0.5351 GB, free: 11.34 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001266/0.5633, allocations: 0.5259 MB / 0.5356 GB, free: 10.79 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003747/0.5637, allocations: 47.98 kB / 0.5357 GB, free: 10.74 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.5648, allocations: 59.97 kB / 0.5357 GB, free: 10.68 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.5651, allocations: 147.4 kB / 0.5359 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.5652, allocations: 68 kB / 0.536 GB, free: 10.47 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004511/0.5697, allocations: 2.463 MB / 0.5384 GB, free: 7.996 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5697, allocations: 0 / 0.5384 GB, free: 7.996 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005466/0.5752, allocations: 0.8671 MB / 0.5392 GB, free: 7.129 MB / 478.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.005305/0.5805, allocations: 3.923 MB / 0.543 GB, free: 2.934 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2075/0.7881, allocations: 3.662 MB / 0.5466 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.266e-05/0.7881, allocations: 2.688 kB / 0.5466 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001355/0.7895, allocations: 0.7271 MB / 0.5473 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003327/0.7928, allocations: 455 kB / 0.5478 GB, free: 151.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05665/0.8495, allocations: 40.56 MB / 0.5874 GB, free: 123.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003038/0.8526, allocations: 3.102 MB / 0.5904 GB, free: 121.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003551/0.8562, allocations: 1.769 MB / 0.5921 GB, free: 120 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00199/0.8582, allocations: 1.8 MB / 0.5939 GB, free: 118.2 MB / 478.1 MB Notification: Performance of SimCode: time 2.495e-06/0.8582, allocations: 0 / 0.5939 GB, free: 118.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09404/0.9522, allocations: 56.37 MB / 0.6489 GB, free: 61.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.62/19.57, allocations: 7.438 kB / 0.6489 GB, free: 61.8 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches