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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00154/0.00154, allocations: 122.2 kB / 17.78 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002042/0.002043, allocations: 201.2 kB / 18.72 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 67.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2486, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01115/0.2598, allocations: 10.67 MB / 419.4 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007273/0.2671, allocations: 3.888 MB / 423.3 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001234/0.2683, allocations: 63.81 kB / 423.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003899/0.2723, allocations: 2.227 MB / 425.6 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004117/0.2764, allocations: 1.844 MB / 427.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001371/0.2778, allocations: 0.7058 MB / 428.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005081/0.2829, allocations: 4.312 MB / 432.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003115/0.286, allocations: 2.888 MB / 435.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001904/0.288, allocations: 1.464 MB / 436.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002555/0.2905, allocations: 2.079 MB / 438.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006075/0.2912, allocations: 292 kB / 439.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001587/0.2928, allocations: 0.9207 MB / 440.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00153/0.2943, allocations: 1.812 MB / 441.9 MB, free: 204 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002023/0.2963, allocations: 2.081 MB / 444 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006551/0.3029, allocations: 6.399 MB / 450.4 MB, free: 7.676 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3029, allocations: 0 / 450.4 MB, free: 7.676 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3029, allocations: 0 / 450.4 MB, free: 7.676 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001606/0.3031, allocations: 0 / 450.4 MB, free: 7.676 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.008291/0.3114, allocations: 4.705 MB / 455.1 MB, free: 2.895 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3115, allocations: 8.031 kB / 455.1 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009847/0.3125, allocations: 0.6951 MB / 455.8 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007539/0.32, allocations: 1.968 MB / 457.8 MB, free: 212 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005832/0.3259, allocations: 2.699 MB / 460.5 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.3261, allocations: 229.6 kB / 460.7 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008249/0.327, allocations: 295.8 kB / 461 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01552/0.3425, allocations: 9.655 MB / 470.6 MB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001129/0.3426, allocations: 51.58 kB / 470.7 MB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003856/0.343, allocations: 143.8 kB / 470.8 MB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002892/0.3459, allocations: 1.923 MB / 472.7 MB, free: 400 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/0.3607, allocations: 7.641 MB / 480.4 MB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04306/0.4039, allocations: 37.68 MB / 0.5059 GB, free: 1.891 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006995/0.4109, allocations: 2.901 MB / 0.5088 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.4124, allocations: 0.8691 MB / 0.5096 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006159/0.4185, allocations: 3.852 MB / 0.5134 GB, free: 9.891 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.4186, allocations: 51.2 kB / 0.5134 GB, free: 9.828 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.027e-06/0.4186, allocations: 0 / 0.5134 GB, free: 9.828 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02218/0.4408, allocations: 9.287 MB / 0.5225 GB, free: 460 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.495e-05/0.4409, allocations: 141.5 kB / 0.5226 GB, free: 288 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005489/0.4464, allocations: 3.941 MB / 0.5265 GB, free: 12.36 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001963/0.4466, allocations: 45.61 kB / 0.5265 GB, free: 12.31 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002163/0.4488, allocations: 3.205 MB / 0.5296 GB, free: 9.074 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006594/0.4495, allocations: 0.6436 MB / 0.5303 GB, free: 8.426 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001446/0.4509, allocations: 1.156 MB / 0.5314 GB, free: 7.258 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.4511, allocations: 309.1 kB / 0.5317 GB, free: 6.953 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002568/0.4536, allocations: 1.569 MB / 0.5332 GB, free: 5.379 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.214/0.6677, allocations: 5.338 MB / 0.5384 GB, free: 118.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007609/0.6753, allocations: 7.526 MB / 0.5458 GB, free: 112.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001804/0.6755, allocations: 43.34 kB / 0.5458 GB, free: 112.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01052/0.6861, allocations: 6.634 MB / 0.5523 GB, free: 110.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.805e-05/0.6862, allocations: 62.28 kB / 0.5524 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001434/0.6863, allocations: 134.8 kB / 0.5525 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000143/0.6865, allocations: 181.9 kB / 0.5527 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003705/0.6902, allocations: 1.375 MB / 0.554 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001558/0.6904, allocations: 266.7 kB / 0.5543 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00352/0.6939, allocations: 284 kB / 0.5545 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004585/0.6944, allocations: 367.5 kB / 0.5549 GB, free: 109.7 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.002343/0.6967, allocations: 1.977 MB / 0.5568 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005/0.6972, allocations: 359.7 kB / 0.5572 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006318/0.6979, allocations: 400 kB / 0.5576 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.64e-05/0.6979, allocations: 18.12 kB / 0.5576 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.6979, allocations: 7.5 kB / 0.5576 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.6979, allocations: 7.312 kB / 0.5576 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007266/0.7052, allocations: 5.76 MB / 0.5632 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.211e-05/0.7053, allocations: 18.38 kB / 0.5632 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008754/0.7062, allocations: 274.7 kB / 0.5635 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-05/0.7062, allocations: 28 kB / 0.5635 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.69e-05/0.7063, allocations: 55.58 kB / 0.5636 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.805e-05/0.7063, allocations: 35.58 kB / 0.5636 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.169e-05/0.7063, allocations: 31.88 kB / 0.5636 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002748/0.7091, allocations: 3.246 MB / 0.5668 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007439/0.7098, allocations: 424.9 kB / 0.5672 GB, free: 99.79 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003021/0.7101, allocations: 51.28 kB / 0.5673 GB, free: 99.74 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.7112, allocations: 63.72 kB / 0.5673 GB, free: 99.69 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.7113, allocations: 148 kB / 0.5675 GB, free: 99.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.455e-05/0.7114, allocations: 68 kB / 0.5675 GB, free: 99.51 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002813/0.7142, allocations: 2.442 MB / 0.5699 GB, free: 97.51 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7142, allocations: 0 / 0.5699 GB, free: 97.51 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004217/0.7184, allocations: 0.8443 MB / 0.5707 GB, free: 96.68 MB / 462.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.002983/0.7214, allocations: 3.923 MB / 0.5746 GB, free: 92.52 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004792/0.7262, allocations: 3.671 MB / 0.5781 GB, free: 88.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-05/0.7263, allocations: 4 kB / 0.5781 GB, free: 88.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007848/0.7271, allocations: 0.7338 MB / 0.5789 GB, free: 88.15 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/0.7295, allocations: 460.3 kB / 0.5793 GB, free: 87.71 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04019/0.7698, allocations: 40.39 MB / 0.6187 GB, free: 41.05 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00261/0.7724, allocations: 3.098 MB / 0.6218 GB, free: 37.92 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003072/0.7755, allocations: 1.76 MB / 0.6235 GB, free: 36.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/0.7771, allocations: 1.784 MB / 0.6252 GB, free: 34.36 MB / 462.1 MB Notification: Performance of SimCode: time 1.693e-06/0.7771, allocations: 4 kB / 0.6252 GB, free: 34.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08482/0.8619, allocations: 55.95 MB / 0.6799 GB, free: 10.77 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.66/18.52, allocations: 20.78 kB / 0.6799 GB, free: 10.77 MB / 494.1 MB (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.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches