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.001325/0.001325, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001493/0.001493, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2207/0.2207, allocations: 46.1 MB / 344.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 80.98 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1216, allocations: 62.44 MB / 479.9 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.2793/0.4009, allocations: 42.56 MB / 0.5102 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02091/0.4219, allocations: 9.154 MB / 0.5192 GB, free: 9.113 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009251/0.4312, allocations: 185.6 kB / 0.5194 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005378/0.4366, allocations: 2.453 MB / 0.5218 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005848/0.4425, allocations: 1.727 MB / 0.5234 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00211/0.4447, allocations: 0.7159 MB / 0.5241 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008501/0.4532, allocations: 6.205 MB / 0.5302 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004542/0.4578, allocations: 3.297 MB / 0.5334 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003015/0.4608, allocations: 1.378 MB / 0.5348 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003785/0.4646, allocations: 2.358 MB / 0.5371 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001028/0.4657, allocations: 243.2 kB / 0.5373 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002433/0.4681, allocations: 0.9153 MB / 0.5382 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001932/0.4701, allocations: 1.861 MB / 0.54 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003143/0.4732, allocations: 2.155 MB / 0.5421 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006112/0.4794, allocations: 5.291 MB / 0.5473 GB, free: 11.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.4794, allocations: 0 / 0.5473 GB, free: 11.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4794, allocations: 0 / 0.5473 GB, free: 11.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002236/0.4796, allocations: 4 kB / 0.5473 GB, free: 11.04 MB / 398.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.009972/0.4896, allocations: 4.799 MB / 0.552 GB, free: 6.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.4897, allocations: 8.875 kB / 0.552 GB, free: 6.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007216/0.4969, allocations: 1.94 MB / 0.5539 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004832/0.5018, allocations: 2.292 MB / 0.5561 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002191/0.502, allocations: 250.4 kB / 0.5564 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001025/0.5031, allocations: 334.8 kB / 0.5567 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01818/0.5213, allocations: 10.22 MB / 0.5667 GB, free: 6.586 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001233/0.5214, allocations: 39.69 kB / 0.5667 GB, free: 6.547 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004515/0.5219, allocations: 156.5 kB / 0.5668 GB, free: 6.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002624/0.5245, allocations: 1.91 MB / 0.5687 GB, free: 4.527 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01691/0.5414, allocations: 8.174 MB / 0.5767 GB, free: 12.33 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04743/0.5889, allocations: 39.41 MB / 0.6152 GB, free: 3.941 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008185/0.5971, allocations: 3.312 MB / 0.6184 GB, free: 476 kB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001754/0.5989, allocations: 1.049 MB / 0.6194 GB, free: 15.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008987/0.6079, allocations: 5.996 MB / 0.6253 GB, free: 9.062 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.608, allocations: 51.56 kB / 0.6253 GB, free: 9.004 MB / 478.1 MB Notification: Performance of pre-optimization done (n=148): time 4.118e-06/0.608, allocations: 0 / 0.6253 GB, free: 9.004 MB / 478.1 MB Notification: Performance of matching and sorting (n=160): time 0.02355/0.6316, allocations: 9.516 MB / 0.6346 GB, free: 15.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.57e-05/0.6317, allocations: 145.5 kB / 0.6348 GB, free: 15.21 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006532/0.6382, allocations: 4.039 MB / 0.6387 GB, free: 11.14 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002375/0.6385, allocations: 49.7 kB / 0.6388 GB, free: 11.09 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002273/0.6408, allocations: 3.176 MB / 0.6419 GB, free: 7.91 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007646/0.6416, allocations: 0.6348 MB / 0.6425 GB, free: 7.281 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002143/0.6437, allocations: 1.214 MB / 0.6437 GB, free: 6.055 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.041e-05/0.6438, allocations: 309.1 kB / 0.644 GB, free: 5.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002981/0.6468, allocations: 1.663 MB / 0.6456 GB, free: 4.082 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005555/0.6524, allocations: 5.525 MB / 0.651 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/0.664, allocations: 7.798 MB / 0.6586 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000172/0.6642, allocations: 40 kB / 0.6586 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.02027/0.6845, allocations: 6.918 MB / 0.6654 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002363/0.6848, allocations: 64 kB / 0.6655 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003242/0.6851, allocations: 136 kB / 0.6656 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003251/0.6855, allocations: 180 kB / 0.6658 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007273/0.6928, allocations: 1.435 MB / 0.6672 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003833/0.6932, allocations: 267.2 kB / 0.6674 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006855/0.7001, allocations: 307.8 kB / 0.6677 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00136/0.7015, allocations: 379.9 kB / 0.6681 GB, free: 9.203 MB / 0.5137 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.005476/0.707, allocations: 2.039 MB / 0.6701 GB, free: 7.152 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001258/0.7083, allocations: 347.5 kB / 0.6704 GB, free: 6.809 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.7102, allocations: 414.6 kB / 0.6708 GB, free: 6.391 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.327e-05/0.7103, allocations: 16 kB / 0.6708 GB, free: 6.375 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/0.7104, allocations: 4 kB / 0.6708 GB, free: 6.371 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.276e-05/0.7104, allocations: 7.969 kB / 0.6708 GB, free: 6.363 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01803/0.7285, allocations: 5.851 MB / 0.6765 GB, free: 240 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-05/0.7286, allocations: 16 kB / 0.6765 GB, free: 224 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001737/0.7303, allocations: 291.5 kB / 0.6768 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.054e-05/0.7304, allocations: 24 kB / 0.6768 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001433/0.7305, allocations: 44.47 kB / 0.6769 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-05/0.7306, allocations: 35.86 kB / 0.6769 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-05/0.7306, allocations: 24.31 kB / 0.6769 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006325/0.7369, allocations: 3.32 MB / 0.6802 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001466/0.7384, allocations: 416.5 kB / 0.6806 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009738/0.7394, allocations: 55.92 kB / 0.6806 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002319/0.7418, allocations: 63.95 kB / 0.6807 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003466/0.7421, allocations: 147.4 kB / 0.6808 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001709/0.7423, allocations: 66.81 kB / 0.6809 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007024/0.7494, allocations: 2.507 MB / 0.6834 GB, free: 8.973 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.61e-07/0.7494, allocations: 0 / 0.6834 GB, free: 8.973 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008283/0.7577, allocations: 0.8867 MB / 0.6842 GB, free: 8.086 MB / 0.5294 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.0006979/0.7584, allocations: 201.2 kB / 0.6844 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009554/0.768, allocations: 3.803 MB / 0.6881 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.173e-05/0.7681, allocations: 4 kB / 0.6881 GB, free: 4.102 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001861/0.7699, allocations: 0.7501 MB / 0.6889 GB, free: 3.355 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005636/0.7756, allocations: 460.3 kB / 0.6893 GB, free: 2.902 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02539/0.801, allocations: 11.22 MB / 0.7003 GB, free: 7.418 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005998/0.8071, allocations: 3.165 MB / 0.7033 GB, free: 4.227 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/0.8083, allocations: 291.4 kB / 0.7036 GB, free: 3.941 MB / 0.545 GB Notification: Performance of SimCode: time 9.42e-07/0.8083, allocations: 0 / 0.7036 GB, free: 3.941 MB / 0.545 GB Notification: Performance of Templates: time 0.3124/1.121, allocations: 52.92 MB / 0.7553 GB, free: 164.9 MB / 0.545 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/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