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: 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_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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 65.34 kB / 306.9 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.08996, allocations: 50.53 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.178/0.268, allocations: 38.39 MB / 395.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02087/0.2889, allocations: 8.419 MB / 404.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007959/0.2969, allocations: 163.6 kB / 404.4 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004484/0.3015, allocations: 2.197 MB / 406.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004718/0.3062, allocations: 1.693 MB / 408.3 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001551/0.3078, allocations: 0.658 MB / 409 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006544/0.3143, allocations: 5.934 MB / 414.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003641/0.318, allocations: 2.858 MB / 417.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002024/0.32, allocations: 1.316 MB / 419.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002617/0.3227, allocations: 2.22 MB / 421.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004985/0.3232, allocations: 216 kB / 421.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001747/0.3249, allocations: 0.8893 MB / 422.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.3264, allocations: 1.749 MB / 424.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001795/0.3282, allocations: 2.019 MB / 426.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004258/0.3325, allocations: 4.904 MB / 431.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3325, allocations: 0 / 431.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3325, allocations: 0 / 431.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.691e-05/0.3326, allocations: 0 / 431.1 MB, free: 2.027 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.007394/0.34, allocations: 4.564 MB / 435.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3401, allocations: 12.03 kB / 435.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006752/0.3469, allocations: 1.918 MB / 437.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003691/0.3506, allocations: 2.199 MB / 439.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.3507, allocations: 229.6 kB / 440 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004989/0.3513, allocations: 295.8 kB / 440.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0152/0.3665, allocations: 9.651 MB / 449.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001541/0.3667, allocations: 51.53 kB / 450 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005828/0.3673, allocations: 143.8 kB / 450.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002815/0.3701, allocations: 1.923 MB / 452 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01565/0.3857, allocations: 7.645 MB / 459.7 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04369/0.4295, allocations: 37.74 MB / 497.4 MB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006849/0.4364, allocations: 2.899 MB / 0.4886 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.4378, allocations: 0.8652 MB / 0.4894 GB, free: 9.648 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005986/0.4438, allocations: 3.842 MB / 0.4932 GB, free: 5.586 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.4438, allocations: 55.16 kB / 0.4932 GB, free: 5.523 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.868e-06/0.4438, allocations: 0 / 0.4932 GB, free: 5.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02403/0.4679, allocations: 9.052 MB / 0.5021 GB, free: 12.35 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.988e-05/0.468, allocations: 153.5 kB / 0.5022 GB, free: 12.17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006851/0.4749, allocations: 3.908 MB / 0.506 GB, free: 8.277 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001526/0.475, allocations: 45.7 kB / 0.5061 GB, free: 8.227 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002392/0.4774, allocations: 3.077 MB / 0.5091 GB, free: 5.109 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006811/0.4781, allocations: 0.6135 MB / 0.5097 GB, free: 4.488 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002029/0.4802, allocations: 1.163 MB / 0.5108 GB, free: 3.312 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.929e-05/0.4803, allocations: 305.1 kB / 0.5111 GB, free: 3.012 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002738/0.483, allocations: 1.589 MB / 0.5127 GB, free: 1.418 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005518/0.4886, allocations: 5.362 MB / 0.5179 GB, free: 10.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00847/0.4971, allocations: 7.56 MB / 0.5253 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001265/0.4972, allocations: 36 kB / 0.5253 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.1866/0.6838, allocations: 6.662 MB / 0.5318 GB, free: 140.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.543e-05/0.6839, allocations: 64.22 kB / 0.5319 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001256/0.684, allocations: 134.1 kB / 0.532 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001882/0.6842, allocations: 176 kB / 0.5322 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003744/0.688, allocations: 1.384 MB / 0.5335 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002258/0.6882, allocations: 269 kB / 0.5338 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003208/0.6914, allocations: 283.5 kB / 0.5341 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004406/0.6919, allocations: 365.9 kB / 0.5344 GB, free: 140.3 MB / 446.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.002569/0.6945, allocations: 1.98 MB / 0.5363 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004656/0.6949, allocations: 335 kB / 0.5367 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006145/0.6955, allocations: 398.5 kB / 0.537 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.448e-05/0.6956, allocations: 16.81 kB / 0.5371 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.6956, allocations: 2.188 kB / 0.5371 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.6956, allocations: 7.734 kB / 0.5371 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008169/0.7038, allocations: 5.763 MB / 0.5427 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.339e-05/0.7038, allocations: 17 kB / 0.5427 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009077/0.7048, allocations: 283.9 kB / 0.543 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-05/0.7048, allocations: 27.25 kB / 0.543 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.243e-05/0.7049, allocations: 53.19 kB / 0.5431 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-05/0.7049, allocations: 36.44 kB / 0.5431 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.979e-05/0.7049, allocations: 28.81 kB / 0.5431 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003197/0.7081, allocations: 3.233 MB / 0.5463 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006161/0.7088, allocations: 406.5 kB / 0.5467 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003014/0.7091, allocations: 51.44 kB / 0.5467 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.7101, allocations: 59.23 kB / 0.5468 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.7102, allocations: 146.2 kB / 0.5469 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.451e-05/0.7103, allocations: 75.22 kB / 0.547 GB, free: 134.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002849/0.7132, allocations: 2.424 MB / 0.5493 GB, free: 133.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7132, allocations: 0 / 0.5493 GB, free: 133.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004821/0.718, allocations: 0.8501 MB / 0.5502 GB, free: 133.5 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.0003375/0.7184, allocations: 211.3 kB / 0.5504 GB, free: 133.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004762/0.7231, allocations: 3.649 MB / 0.5539 GB, free: 132.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.7232, allocations: 3 kB / 0.5539 GB, free: 132.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007825/0.7239, allocations: 0.7418 MB / 0.5547 GB, free: 131.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002318/0.7263, allocations: 434.5 kB / 0.5551 GB, free: 131.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.7378, allocations: 10.91 MB / 0.5657 GB, free: 121.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00237/0.7402, allocations: 3.084 MB / 0.5688 GB, free: 118.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006535/0.7409, allocations: 277.6 kB / 0.569 GB, free: 118.7 MB / 446.1 MB Notification: Performance of SimCode: time 7.71e-07/0.7409, allocations: 0 / 0.569 GB, free: 118.7 MB / 446.1 MB Notification: Performance of Templates: time 0.05648/0.7974, allocations: 50.95 MB / 0.6188 GB, free: 67.98 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches