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: 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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 107.1 kB / 17.74 MB, free: 5.316 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.001675/0.001675, allocations: 188.2 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 51.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2624, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01114/0.2735, allocations: 10.7 MB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007146/0.2807, allocations: 3.872 MB / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.2821, allocations: 63.81 kB / 416 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003842/0.286, allocations: 2.234 MB / 418.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003989/0.29, allocations: 1.832 MB / 420.1 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001496/0.2915, allocations: 0.7097 MB / 420.8 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005036/0.2966, allocations: 4.233 MB / 425.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00286/0.2995, allocations: 2.902 MB / 428 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001742/0.3012, allocations: 1.468 MB / 429.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002348/0.3036, allocations: 2.087 MB / 431.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000513/0.3041, allocations: 292 kB / 431.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001667/0.3058, allocations: 0.944 MB / 432.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001387/0.3072, allocations: 1.831 MB / 434.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001771/0.309, allocations: 2.101 MB / 436.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007096/0.3161, allocations: 6.411 MB / 443.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3161, allocations: 0 / 443.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3161, allocations: 0 / 443.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001333/0.3162, allocations: 0 / 443.1 MB, free: 15.02 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.007833/0.3241, allocations: 4.606 MB / 447.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.3241, allocations: 11.89 kB / 447.7 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007183/0.3313, allocations: 1.926 MB / 449.6 MB, free: 8.398 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004/0.3354, allocations: 2.285 MB / 451.9 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/0.3356, allocations: 237.6 kB / 452.1 MB, free: 5.816 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005736/0.3361, allocations: 291.8 kB / 452.4 MB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0144/0.3505, allocations: 9.635 MB / 462.1 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.746e-05/0.3507, allocations: 55.47 kB / 462.1 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000356/0.3511, allocations: 139.9 kB / 462.3 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002772/0.3538, allocations: 1.923 MB / 464.2 MB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01391/0.3677, allocations: 7.633 MB / 471.8 MB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04227/0.4101, allocations: 37.59 MB / 0.4975 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006783/0.4169, allocations: 2.891 MB / 0.5003 GB, free: 7.562 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.4182, allocations: 0.883 MB / 0.5012 GB, free: 6.668 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00577/0.424, allocations: 3.751 MB / 0.5048 GB, free: 2.715 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.4241, allocations: 43.22 kB / 0.5049 GB, free: 2.66 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 3.968e-06/0.4241, allocations: 4 kB / 0.5049 GB, free: 2.656 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02172/0.4458, allocations: 9.033 MB / 0.5137 GB, free: 9.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.446, allocations: 149.5 kB / 0.5138 GB, free: 9.324 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005386/0.4514, allocations: 3.912 MB / 0.5176 GB, free: 5.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002258/0.4516, allocations: 49.69 kB / 0.5177 GB, free: 5.375 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002106/0.4537, allocations: 3.082 MB / 0.5207 GB, free: 2.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006837/0.4544, allocations: 0.6057 MB / 0.5213 GB, free: 1.637 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/0.4559, allocations: 1.163 MB / 0.5224 GB, free: 472 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.456, allocations: 305.1 kB / 0.5227 GB, free: 164 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002643/0.4587, allocations: 1.589 MB / 0.5243 GB, free: 14.57 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005262/0.464, allocations: 5.355 MB / 0.5295 GB, free: 7.316 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2565/0.7205, allocations: 7.548 MB / 0.5369 GB, free: 123.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001578/0.7207, allocations: 38.62 kB / 0.5369 GB, free: 123.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01544/0.7361, allocations: 6.656 MB / 0.5434 GB, free: 121.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.88e-05/0.7363, allocations: 62.84 kB / 0.5435 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000133/0.7364, allocations: 137.1 kB / 0.5436 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001644/0.7366, allocations: 181.9 kB / 0.5438 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003646/0.7402, allocations: 1.384 MB / 0.5451 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001449/0.7404, allocations: 258.7 kB / 0.5454 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003279/0.7437, allocations: 290.7 kB / 0.5456 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003579/0.7441, allocations: 365.9 kB / 0.546 GB, free: 121.2 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 (746): * Single equations (assignments): 743 * 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.002274/0.7463, allocations: 1.972 MB / 0.5479 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004562/0.7468, allocations: 337.4 kB / 0.5482 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001698/0.7485, allocations: 1.239 MB / 0.5495 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.7485, allocations: 23.41 kB / 0.5495 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.7486, allocations: 1.344 kB / 0.5495 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/0.7486, allocations: 12.5 kB / 0.5495 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006663/0.7552, allocations: 5.753 MB / 0.5551 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/0.7553, allocations: 16 kB / 0.5551 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008667/0.7562, allocations: 276.5 kB / 0.5554 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-05/0.7562, allocations: 24 kB / 0.5554 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-05/0.7563, allocations: 55.8 kB / 0.5555 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.018e-05/0.7563, allocations: 35.72 kB / 0.5555 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-05/0.7563, allocations: 27.88 kB / 0.5555 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002809/0.7591, allocations: 3.22 MB / 0.5587 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006125/0.7597, allocations: 405.9 kB / 0.5591 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002981/0.7601, allocations: 50.58 kB / 0.5591 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.7611, allocations: 61.8 kB / 0.5592 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.7612, allocations: 152 kB / 0.5593 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.452e-05/0.7613, allocations: 64 kB / 0.5594 GB, free: 112.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002734/0.7641, allocations: 2.435 MB / 0.5617 GB, free: 110.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7641, allocations: 4 kB / 0.5617 GB, free: 110.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004142/0.7682, allocations: 0.864 MB / 0.5626 GB, free: 109.8 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.0003549/0.7686, allocations: 209.3 kB / 0.5628 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004469/0.7731, allocations: 3.685 MB / 0.5664 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/0.7731, allocations: 4.188 kB / 0.5664 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007524/0.7739, allocations: 0.7331 MB / 0.5671 GB, free: 105.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002483/0.7764, allocations: 457.5 kB / 0.5675 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/0.7891, allocations: 8.92 MB / 0.5763 GB, free: 95.67 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002728/0.7919, allocations: 3.087 MB / 0.5793 GB, free: 92.55 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007215/0.7926, allocations: 283.4 kB / 0.5795 GB, free: 92.27 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.7926, allocations: 0 / 0.5795 GB, free: 92.27 MB / 462.1 MB Notification: Performance of Templates: time 0.06751/0.8601, allocations: 51.78 MB / 0.6301 GB, free: 40.6 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/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