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.001351/0.001351, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001626/0.001626, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2325/0.2325, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 79.86 kB / 481.3 MB, free: 4.027 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4303/0.4318, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01554/0.4473, allocations: 11.37 MB / 0.5421 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01166/0.4591, allocations: 4.052 MB / 0.5461 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002887/0.462, allocations: 66 kB / 0.5461 GB, free: 1.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005087/0.4671, allocations: 2.494 MB / 0.5486 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006107/0.4733, allocations: 1.836 MB / 0.5503 GB, free: 13.83 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002103/0.4754, allocations: 0.776 MB / 0.5511 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006967/0.4823, allocations: 4.507 MB / 0.5555 GB, free: 8.539 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00409/0.4865, allocations: 3.328 MB / 0.5588 GB, free: 5.164 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002431/0.4889, allocations: 1.553 MB / 0.5603 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002858/0.4918, allocations: 2.22 MB / 0.5624 GB, free: 1.379 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007925/0.4926, allocations: 336 kB / 0.5628 GB, free: 1.051 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00226/0.4949, allocations: 0.952 MB / 0.5637 GB, free: 100 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001882/0.4968, allocations: 1.913 MB / 0.5656 GB, free: 14.18 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002618/0.4994, allocations: 2.233 MB / 0.5677 GB, free: 11.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009365/0.5088, allocations: 6.831 MB / 0.5744 GB, free: 5.078 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.5088, allocations: 0 / 0.5744 GB, free: 5.078 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.5088, allocations: 4 kB / 0.5744 GB, free: 5.074 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002631/0.5091, allocations: 0 / 0.5744 GB, free: 5.074 MB / 430.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.01086/0.52, allocations: 4.917 MB / 0.5792 GB, free: 80 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.52, allocations: 8.031 kB / 0.5792 GB, free: 72 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007364/0.5274, allocations: 1.98 MB / 0.5812 GB, free: 14.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004977/0.5324, allocations: 2.334 MB / 0.5834 GB, free: 11.69 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.5327, allocations: 257.6 kB / 0.5837 GB, free: 11.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009728/0.5336, allocations: 331.8 kB / 0.584 GB, free: 11.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02081/0.5545, allocations: 10.24 MB / 0.594 GB, free: 80 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002216/0.5547, allocations: 43.64 kB / 0.594 GB, free: 36 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001169/0.5559, allocations: 159.9 kB / 0.5942 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003239/0.5592, allocations: 1.908 MB / 0.5961 GB, free: 13.96 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01854/0.5777, allocations: 8.165 MB / 0.604 GB, free: 5.777 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05318/0.6309, allocations: 39.32 MB / 0.6424 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008509/0.6395, allocations: 3.297 MB / 0.6456 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001851/0.6414, allocations: 1.06 MB / 0.6467 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009031/0.6505, allocations: 6.006 MB / 0.6525 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.6505, allocations: 47.56 kB / 0.6526 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.028e-06/0.6506, allocations: 0 / 0.6526 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02636/0.6769, allocations: 9.744 MB / 0.6621 GB, free: 8.465 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.6771, allocations: 204.9 kB / 0.6623 GB, free: 8.219 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00739/0.6845, allocations: 4.051 MB / 0.6663 GB, free: 4.141 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002275/0.6848, allocations: 45.7 kB / 0.6663 GB, free: 4.09 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002372/0.6871, allocations: 3.314 MB / 0.6695 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008252/0.688, allocations: 0.6629 MB / 0.6702 GB, free: 76 kB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002142/0.6901, allocations: 1.227 MB / 0.6714 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.152e-05/0.6902, allocations: 301.1 kB / 0.6717 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002881/0.6931, allocations: 1.664 MB / 0.6733 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005754/0.6989, allocations: 5.534 MB / 0.6787 GB, free: 5.398 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00921/0.7081, allocations: 7.805 MB / 0.6863 GB, free: 11.67 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000122/0.7083, allocations: 47.94 kB / 0.6864 GB, free: 11.62 MB / 0.545 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01259/0.7209, allocations: 6.935 MB / 0.6931 GB, free: 4.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001296/0.721, allocations: 60.97 kB / 0.6932 GB, free: 4.621 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000187/0.7212, allocations: 140 kB / 0.6933 GB, free: 4.484 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001935/0.7214, allocations: 184 kB / 0.6935 GB, free: 4.305 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004492/0.7259, allocations: 1.435 MB / 0.6949 GB, free: 2.867 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002747/0.7262, allocations: 270.9 kB / 0.6952 GB, free: 2.602 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004099/0.7303, allocations: 299.7 kB / 0.6954 GB, free: 2.309 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007416/0.7311, allocations: 379.9 kB / 0.6958 GB, free: 1.941 MB / 0.545 GB 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.003604/0.7347, allocations: 2.045 MB / 0.6978 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/0.7358, allocations: 361.6 kB / 0.6982 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/0.737, allocations: 410.6 kB / 0.6985 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.091e-05/0.737, allocations: 23.94 kB / 0.6986 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.328e-05/0.7371, allocations: 3.984 kB / 0.6986 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.33e-05/0.7371, allocations: 7.984 kB / 0.6986 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.7489, allocations: 5.836 MB / 0.7043 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.096e-05/0.749, allocations: 16 kB / 0.7043 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.7501, allocations: 291.5 kB / 0.7046 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.769e-05/0.7501, allocations: 24 kB / 0.7046 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.7502, allocations: 48 kB / 0.7046 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.674e-05/0.7502, allocations: 35.86 kB / 0.7047 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.514e-05/0.7503, allocations: 24.34 kB / 0.7047 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003963/0.7542, allocations: 3.338 MB / 0.708 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009423/0.7552, allocations: 438.5 kB / 0.7084 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006834/0.7559, allocations: 47.98 kB / 0.7084 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/0.7573, allocations: 63.95 kB / 0.7085 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.7575, allocations: 147.4 kB / 0.7086 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.7576, allocations: 68 kB / 0.7087 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004396/0.762, allocations: 2.503 MB / 0.7111 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7621, allocations: 0 / 0.7111 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005127/0.7672, allocations: 0.8866 MB / 0.712 GB, free: 0.7461 MB / 0.5606 GB 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.0005288/0.7677, allocations: 198.6 kB / 0.7122 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006718/0.7745, allocations: 3.847 MB / 0.7159 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.895e-05/0.7745, allocations: 4 kB / 0.7159 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.7757, allocations: 0.7541 MB / 0.7167 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003894/0.7796, allocations: 484.8 kB / 0.7171 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01773/0.7974, allocations: 8.876 MB / 0.7258 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3405/1.138, allocations: 3.162 MB / 0.7289 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004626/1.143, allocations: 1.815 MB / 0.7307 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000585/1.143, allocations: 244.8 kB / 0.7309 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of SimCode: time 8.32e-07/1.143, allocations: 0 / 0.7309 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.05113/1.194, allocations: 25.12 MB / 0.7554 GB, free: 162.3 MB / 0.5762 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches