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.001105/0.001105, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2272/0.2272, allocations: 46.11 MB / 343.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 73.62 kB / 417 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1496, allocations: 62.44 MB / 479.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.3829/0.5325, allocations: 42.56 MB / 0.5098 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02695/0.5595, allocations: 9.06 MB / 0.5187 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01346/0.573, allocations: 180.9 kB / 0.5188 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005999/0.5791, allocations: 2.378 MB / 0.5211 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007767/0.5869, allocations: 1.715 MB / 0.5228 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002913/0.5899, allocations: 0.7302 MB / 0.5235 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009773/0.5997, allocations: 4.518 MB / 0.5279 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008751/0.6085, allocations: 3.525 MB / 0.5314 GB, free: 4.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004449/0.613, allocations: 1.572 MB / 0.5329 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005093/0.6181, allocations: 2.443 MB / 0.5353 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002013/0.6201, allocations: 336.4 kB / 0.5356 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003893/0.624, allocations: 0.9759 MB / 0.5366 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003267/0.6273, allocations: 1.946 MB / 0.5385 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007493/0.6349, allocations: 2.252 MB / 0.5407 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.6459, allocations: 6.622 MB / 0.5471 GB, free: 10.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.6459, allocations: 0 / 0.5471 GB, free: 10.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.6459, allocations: 0 / 0.5471 GB, free: 10.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002697/0.6462, allocations: 0 / 0.5471 GB, free: 10.73 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.0103/0.6565, allocations: 4.797 MB / 0.5518 GB, free: 5.969 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.6566, allocations: 12.03 kB / 0.5518 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006902/0.6635, allocations: 1.937 MB / 0.5537 GB, free: 4.012 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004693/0.6682, allocations: 2.284 MB / 0.556 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001971/0.6684, allocations: 254.5 kB / 0.5562 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006125/0.6691, allocations: 331.9 kB / 0.5565 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02/0.6891, allocations: 10.23 MB / 0.5665 GB, free: 6.281 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/0.6892, allocations: 39.69 kB / 0.5666 GB, free: 6.242 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004309/0.6897, allocations: 157.6 kB / 0.5667 GB, free: 6.125 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002824/0.6925, allocations: 1.914 MB / 0.5686 GB, free: 4.219 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01718/0.7097, allocations: 8.16 MB / 0.5765 GB, free: 12.04 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04847/0.7582, allocations: 39.41 MB / 0.615 GB, free: 3.641 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007891/0.7661, allocations: 3.306 MB / 0.6183 GB, free: 176 kB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.7677, allocations: 1.056 MB / 0.6193 GB, free: 15.11 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008447/0.7761, allocations: 6.002 MB / 0.6252 GB, free: 8.758 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.071e-05/0.7762, allocations: 43.56 kB / 0.6252 GB, free: 8.707 MB / 478.1 MB Notification: Performance of pre-optimization done (n=148): time 4.237e-06/0.7762, allocations: 3.938 kB / 0.6252 GB, free: 8.703 MB / 478.1 MB Notification: Performance of matching and sorting (n=160): time 0.02257/0.7988, allocations: 9.524 MB / 0.6345 GB, free: 15.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.395e-05/0.7989, allocations: 141.5 kB / 0.6346 GB, free: 14.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005294/0.8042, allocations: 4.039 MB / 0.6386 GB, free: 10.84 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001285/0.8044, allocations: 53.7 kB / 0.6386 GB, free: 10.78 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001993/0.8064, allocations: 3.171 MB / 0.6417 GB, free: 7.605 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005341/0.8069, allocations: 0.6368 MB / 0.6423 GB, free: 6.973 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001409/0.8083, allocations: 1.216 MB / 0.6435 GB, free: 5.746 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.8084, allocations: 309 kB / 0.6438 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002432/0.8109, allocations: 1.659 MB / 0.6454 GB, free: 3.777 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004988/0.8159, allocations: 5.521 MB / 0.6508 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008365/0.8243, allocations: 7.804 MB / 0.6585 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.617e-05/0.8244, allocations: 40 kB / 0.6585 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01108/0.8355, allocations: 6.919 MB / 0.6653 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/0.8356, allocations: 64 kB / 0.6653 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001292/0.8357, allocations: 136 kB / 0.6654 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001727/0.8359, allocations: 180 kB / 0.6656 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003804/0.8397, allocations: 1.443 MB / 0.667 GB, free: 9.824 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002023/0.8399, allocations: 267 kB / 0.6673 GB, free: 9.562 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003494/0.8434, allocations: 295.6 kB / 0.6676 GB, free: 9.273 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004308/0.8438, allocations: 379.9 kB / 0.6679 GB, free: 8.902 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.002795/0.8467, allocations: 2.045 MB / 0.6699 GB, free: 6.844 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005348/0.8472, allocations: 347.5 kB / 0.6703 GB, free: 6.5 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000625/0.8478, allocations: 414.6 kB / 0.6707 GB, free: 6.086 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.296e-05/0.8479, allocations: 16 kB / 0.6707 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.8479, allocations: 0 / 0.6707 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.8479, allocations: 15.97 kB / 0.6707 GB, free: 6.055 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009389/0.8573, allocations: 5.849 MB / 0.6764 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/0.8573, allocations: 16 kB / 0.6764 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.8584, allocations: 287.5 kB / 0.6767 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.168e-05/0.8584, allocations: 24 kB / 0.6767 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.833e-05/0.8585, allocations: 52.59 kB / 0.6768 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.227e-05/0.8585, allocations: 35.92 kB / 0.6768 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-05/0.8585, allocations: 27.88 kB / 0.6768 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004347/0.8629, allocations: 3.308 MB / 0.68 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008049/0.8637, allocations: 420.5 kB / 0.6804 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003387/0.864, allocations: 47.98 kB / 0.6805 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.8651, allocations: 64.42 kB / 0.6806 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.8653, allocations: 147.4 kB / 0.6807 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.94e-05/0.8654, allocations: 68 kB / 0.6808 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004253/0.8697, allocations: 2.503 MB / 0.6832 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.61e-07/0.8697, allocations: 4 kB / 0.6832 GB, free: 8.668 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005987/0.8757, allocations: 0.8932 MB / 0.6841 GB, free: 7.777 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.0004305/0.8761, allocations: 193.1 kB / 0.6843 GB, free: 7.586 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00666/0.8828, allocations: 4.006 MB / 0.6882 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/0.8828, allocations: 1.5 kB / 0.6882 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.884, allocations: 0.761 MB / 0.6889 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002882/0.8869, allocations: 477.2 kB / 0.6894 GB, free: 2.383 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01782/0.9047, allocations: 10.78 MB / 0.6999 GB, free: 7.336 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00388/0.9087, allocations: 3.176 MB / 0.703 GB, free: 4.129 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004743/0.9134, allocations: 1.808 MB / 0.7048 GB, free: 2.312 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000601/0.914, allocations: 247.3 kB / 0.705 GB, free: 2.07 MB / 0.545 GB Notification: Performance of SimCode: time 1.653e-06/0.914, allocations: 0 / 0.705 GB, free: 2.07 MB / 0.545 GB Notification: Performance of Templates: time 0.3113/1.225, allocations: 28.48 MB / 0.7328 GB, free: 184.1 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/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