Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring") translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001416/0.001416, allocations: 121 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001619/0.001619, allocations: 208.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2203/0.2203, allocations: 46.1 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 79.75 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1427, allocations: 62.45 MB / 481.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01209/0.1548, allocations: 11.35 MB / 492.8 MB, free: 9.148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008484/0.1633, allocations: 4.073 MB / 496.9 MB, free: 5.062 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002045/0.1654, allocations: 63.81 kB / 497 MB, free: 5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004674/0.1701, allocations: 2.48 MB / 499.4 MB, free: 2.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005252/0.1754, allocations: 1.84 MB / 0.4895 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001861/0.1773, allocations: 0.7761 MB / 0.4903 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006785/0.1841, allocations: 4.503 MB / 0.4947 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004625/0.1887, allocations: 3.327 MB / 0.4979 GB, free: 8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003378/0.1921, allocations: 1.554 MB / 0.4994 GB, free: 6.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003873/0.196, allocations: 2.216 MB / 0.5016 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009643/0.197, allocations: 332 kB / 0.5019 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002093/0.1991, allocations: 0.9597 MB / 0.5029 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001777/0.2009, allocations: 1.913 MB / 0.5047 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2743/0.4752, allocations: 2.23 MB / 0.5069 GB, free: 17.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01076/0.486, allocations: 6.807 MB / 0.5136 GB, free: 17.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.486, allocations: 1.344 kB / 0.5136 GB, free: 17.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.486, allocations: 0 / 0.5136 GB, free: 17.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003123/0.4864, allocations: 0 / 0.5136 GB, free: 17.1 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01516/0.5015, allocations: 4.787 MB / 0.5182 GB, free: 15.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.5016, allocations: 10.44 kB / 0.5182 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00882/0.5104, allocations: 1.952 MB / 0.5201 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007422/0.5179, allocations: 2.321 MB / 0.5224 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000315/0.5182, allocations: 253.9 kB / 0.5227 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001706/0.5199, allocations: 326.8 kB / 0.523 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02244/0.5424, allocations: 10.24 MB / 0.533 GB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000144/0.5426, allocations: 48.12 kB / 0.533 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004518/0.543, allocations: 158.9 kB / 0.5332 GB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002522/0.5456, allocations: 1.907 MB / 0.535 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01645/0.562, allocations: 8.173 MB / 0.543 GB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05006/0.6121, allocations: 39.24 MB / 0.5813 GB, free: 13.21 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007827/0.62, allocations: 3.298 MB / 0.5846 GB, free: 9.754 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001695/0.6218, allocations: 1.056 MB / 0.5856 GB, free: 8.688 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01063/0.6324, allocations: 5.988 MB / 0.5914 GB, free: 2.363 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.6325, allocations: 43.56 kB / 0.5915 GB, free: 2.312 MB / 430.1 MB Notification: Performance of pre-optimization done (n=148): time 6.252e-06/0.6325, allocations: 3.984 kB / 0.5915 GB, free: 2.309 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.02272/0.6552, allocations: 9.511 MB / 0.6008 GB, free: 8.715 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.6554, allocations: 192.9 kB / 0.601 GB, free: 8.48 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006033/0.6614, allocations: 4.045 MB / 0.6049 GB, free: 4.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002955/0.6617, allocations: 49.7 kB / 0.605 GB, free: 4.355 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002099/0.6638, allocations: 3.172 MB / 0.608 GB, free: 1.184 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007258/0.6646, allocations: 0.6377 MB / 0.6087 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001494/0.6661, allocations: 1.213 MB / 0.6099 GB, free: 15.33 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.583e-05/0.6662, allocations: 313 kB / 0.6102 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002657/0.6689, allocations: 1.66 MB / 0.6118 GB, free: 13.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005121/0.674, allocations: 5.539 MB / 0.6172 GB, free: 5.949 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00942/0.6834, allocations: 7.803 MB / 0.6248 GB, free: 12.78 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001335/0.6836, allocations: 36 kB / 0.6248 GB, free: 12.74 MB / 478.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01604/0.6997, allocations: 6.921 MB / 0.6316 GB, free: 5.918 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001598/0.6999, allocations: 64 kB / 0.6317 GB, free: 5.855 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002484/0.7001, allocations: 136 kB / 0.6318 GB, free: 5.723 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000224/0.7004, allocations: 180.8 kB / 0.632 GB, free: 5.547 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005126/0.7055, allocations: 1.448 MB / 0.6334 GB, free: 4.098 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002599/0.7058, allocations: 263 kB / 0.6336 GB, free: 3.84 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005095/0.7109, allocations: 301.5 kB / 0.6339 GB, free: 3.547 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001158/0.7121, allocations: 380 kB / 0.6343 GB, free: 3.176 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (775): * Single equations (assignments): 772 * 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.006038/0.7181, allocations: 2.039 MB / 0.6363 GB, free: 1.129 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001005/0.7191, allocations: 355.4 kB / 0.6366 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001442/0.7206, allocations: 410.6 kB / 0.637 GB, free: 376 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.581e-05/0.7207, allocations: 16 kB / 0.637 GB, free: 360 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/0.7207, allocations: 0 / 0.637 GB, free: 360 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.7207, allocations: 11.97 kB / 0.637 GB, free: 348 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/0.737, allocations: 5.848 MB / 0.6427 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.364e-05/0.7371, allocations: 16 kB / 0.6427 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.7383, allocations: 288.4 kB / 0.643 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-05/0.7383, allocations: 24 kB / 0.643 GB, free: 9.895 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001705/0.7385, allocations: 44 kB / 0.6431 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-05/0.7385, allocations: 39.86 kB / 0.6431 GB, free: 9.812 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-05/0.7385, allocations: 23.88 kB / 0.6431 GB, free: 9.789 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00504/0.7436, allocations: 3.311 MB / 0.6464 GB, free: 6.234 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001649/0.7453, allocations: 412.5 kB / 0.6468 GB, free: 5.809 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/0.7463, allocations: 55.86 kB / 0.6468 GB, free: 5.758 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001966/0.7483, allocations: 67.95 kB / 0.6469 GB, free: 5.691 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.7486, allocations: 151.4 kB / 0.647 GB, free: 5.543 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.7487, allocations: 63.84 kB / 0.6471 GB, free: 5.484 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006566/0.7553, allocations: 2.507 MB / 0.6495 GB, free: 2.965 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7553, allocations: 0 / 0.6495 GB, free: 2.965 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007148/0.7624, allocations: 0.8849 MB / 0.6504 GB, free: 2.082 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.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 (145): * Single equations (assignments): 142 * 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.0007275/0.7632, allocations: 192.9 kB / 0.6506 GB, free: 1.883 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007642/0.7709, allocations: 3.847 MB / 0.6544 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-05/0.7709, allocations: 0 / 0.6544 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.7723, allocations: 0.7573 MB / 0.6551 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005694/0.778, allocations: 483.8 kB / 0.6556 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02442/0.8024, allocations: 8.721 MB / 0.6641 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007481/0.81, allocations: 3.165 MB / 0.6672 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005352/0.8154, allocations: 1.812 MB / 0.6689 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007162/0.8161, allocations: 239.4 kB / 0.6692 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of SimCode: time 3.927e-06/0.8161, allocations: 7.938 kB / 0.6692 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of Templates: time 0.05971/0.8758, allocations: 23.15 MB / 0.6918 GB, free: 7.738 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches