Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007762/0.0007762, allocations: 99.83 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002096/0.0002097, allocations: 4 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1897/0.19, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02282/0.2128, allocations: 34.98 MB / 443 MB, free: 8.617 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01509/0.228, allocations: 8.044 MB / 451.1 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004828/0.2328, allocations: 163.6 kB / 451.2 MB, free: 416 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004322/0.2372, allocations: 1.788 MB / 453 MB, free: 14.61 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0122/0.2494, allocations: 5.524 MB / 458.5 MB, free: 9.062 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00227/0.2517, allocations: 0.6514 MB / 459.2 MB, free: 8.41 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005614/0.2573, allocations: 4.828 MB / 464 MB, free: 3.57 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004924/0.2623, allocations: 3.579 MB / 467.6 MB, free: 15.92 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002151/0.2644, allocations: 1.257 MB / 468.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002638/0.2671, allocations: 2.01 MB / 470.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004162/0.2675, allocations: 144 kB / 471 MB, free: 12.5 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00147/0.269, allocations: 0.8034 MB / 471.8 MB, free: 11.7 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001333/0.2703, allocations: 1.628 MB / 473.4 MB, free: 10.07 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001561/0.2719, allocations: 1.819 MB / 475.3 MB, free: 8.23 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004026/0.276, allocations: 4.837 MB / 480.1 MB, free: 3.383 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.276, allocations: 4 kB / 480.1 MB, free: 3.379 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.276, allocations: 4 kB / 480.1 MB, free: 3.375 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.934e-05/0.2761, allocations: 0 / 480.1 MB, free: 3.375 MB / 346.7 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.00586/0.2819, allocations: 3.792 MB / 483.9 MB, free: 15.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.282, allocations: 16.03 kB / 483.9 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006603/0.2886, allocations: 1.968 MB / 485.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003803/0.2924, allocations: 2.195 MB / 488.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.2926, allocations: 229.6 kB / 488.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000486/0.2931, allocations: 291.8 kB / 488.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01406/0.3072, allocations: 9.631 MB / 498.2 MB, free: 368 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001075/0.3073, allocations: 51.53 kB / 498.3 MB, free: 316 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003695/0.3077, allocations: 147.8 kB / 498.4 MB, free: 168 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002656/0.3103, allocations: 1.919 MB / 0.4886 GB, free: 14.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01405/0.3244, allocations: 7.614 MB / 0.496 GB, free: 6.605 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2022/0.5266, allocations: 37.74 MB / 0.5329 GB, free: 63.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0056/0.5323, allocations: 2.879 MB / 0.5357 GB, free: 61.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/0.5334, allocations: 0.8718 MB / 0.5366 GB, free: 61.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005024/0.5384, allocations: 3.767 MB / 0.5402 GB, free: 58.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.5385, allocations: 42.66 kB / 0.5403 GB, free: 58.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 4.829e-06/0.5385, allocations: 0 / 0.5403 GB, free: 58.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01723/0.5558, allocations: 9.029 MB / 0.5491 GB, free: 50.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.5559, allocations: 150.9 kB / 0.5492 GB, free: 50.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004145/0.56, allocations: 3.901 MB / 0.553 GB, free: 46.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001922/0.5602, allocations: 45.7 kB / 0.5531 GB, free: 46.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001244/0.5615, allocations: 3.082 MB / 0.5561 GB, free: 43.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004113/0.5619, allocations: 0.6031 MB / 0.5567 GB, free: 43.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.5621, allocations: 120 kB / 0.5568 GB, free: 43.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.5623, allocations: 0.5579 MB / 0.5573 GB, free: 42.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002/0.5643, allocations: 1.557 MB / 0.5589 GB, free: 40.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003062/0.5674, allocations: 5.331 MB / 0.5641 GB, free: 33.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006459/0.5739, allocations: 7.523 MB / 0.5714 GB, free: 24.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/0.574, allocations: 36 kB / 0.5715 GB, free: 24.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01073/0.5848, allocations: 6.603 MB / 0.5779 GB, free: 17.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.497e-05/0.5849, allocations: 63.98 kB / 0.578 GB, free: 17.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000103/0.585, allocations: 136.9 kB / 0.5781 GB, free: 17.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001306/0.5851, allocations: 176 kB / 0.5783 GB, free: 17.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003931/0.5891, allocations: 1.38 MB / 0.5796 GB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001328/0.5892, allocations: 266.9 kB / 0.5799 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003399/0.5926, allocations: 293.2 kB / 0.5801 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004723/0.5931, allocations: 364 kB / 0.5805 GB, free: 15 MB / 378.7 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 (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002328/0.5954, allocations: 1.981 MB / 0.5824 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000408/0.5959, allocations: 335.7 kB / 0.5827 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.5975, allocations: 1.238 MB / 0.584 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.991e-05/0.5975, allocations: 20 kB / 0.584 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/0.5976, allocations: 7.938 kB / 0.584 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.5976, allocations: 7.969 kB / 0.584 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007174/0.6048, allocations: 5.737 MB / 0.5896 GB, free: 5.359 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.049e-05/0.6048, allocations: 23.94 kB / 0.5896 GB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008773/0.6057, allocations: 271.5 kB / 0.5899 GB, free: 5.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.956e-05/0.6057, allocations: 28 kB / 0.5899 GB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.389e-05/0.6058, allocations: 45.41 kB / 0.5899 GB, free: 5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.838e-05/0.6058, allocations: 35.86 kB / 0.59 GB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.217e-05/0.6059, allocations: 31.88 kB / 0.59 GB, free: 4.934 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002901/0.6088, allocations: 3.214 MB / 0.5931 GB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007893/0.6096, allocations: 412.6 kB / 0.5935 GB, free: 1.035 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002884/0.6099, allocations: 53.16 kB / 0.5936 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.6109, allocations: 55.97 kB / 0.5936 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.6111, allocations: 151.4 kB / 0.5938 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-05/0.6112, allocations: 74.08 kB / 0.5939 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003753/0.6149, allocations: 2.415 MB / 0.5962 GB, free: 14.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6149, allocations: 0 / 0.5962 GB, free: 14.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004353/0.6193, allocations: 0.8646 MB / 0.5971 GB, free: 13.46 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003959/0.6197, allocations: 205.4 kB / 0.5973 GB, free: 13.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005824/0.6255, allocations: 3.609 MB / 0.6008 GB, free: 9.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/0.6256, allocations: 4 kB / 0.6008 GB, free: 9.676 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.6267, allocations: 0.7271 MB / 0.6015 GB, free: 8.953 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01077/0.6374, allocations: 455.2 kB / 0.6019 GB, free: 8.516 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01547/0.6529, allocations: 10.57 MB / 0.6123 GB, free: 13.65 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003316/0.6563, allocations: 3.095 MB / 0.6153 GB, free: 10.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008329/0.6571, allocations: 275.4 kB / 0.6155 GB, free: 10.25 MB / 410.7 MB Notification: Performance of SimCode: time 8.61e-07/0.6571, allocations: 0 / 0.6155 GB, free: 10.25 MB / 410.7 MB Notification: Performance of Templates: time 0.0724/0.7296, allocations: 50.53 MB / 0.6649 GB, free: 7.785 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches