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.001452/0.001452, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001434/0.001434, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 247.1 MB, free: 10.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.234/0.234, allocations: 46.09 MB / 344.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 78.16 kB / 417.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1248, allocations: 62.45 MB / 480.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.2914/0.4162, allocations: 42.56 MB / 0.5105 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02506/0.4413, allocations: 9.059 MB / 0.5193 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0125/0.4539, allocations: 181.2 kB / 0.5195 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005624/0.4596, allocations: 2.375 MB / 0.5218 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006466/0.4661, allocations: 1.714 MB / 0.5235 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002829/0.469, allocations: 0.7301 MB / 0.5242 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009816/0.4788, allocations: 4.525 MB / 0.5286 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005323/0.4842, allocations: 3.512 MB / 0.532 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003185/0.4874, allocations: 1.577 MB / 0.5336 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003766/0.4912, allocations: 2.448 MB / 0.536 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001157/0.4924, allocations: 333.7 kB / 0.5363 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002447/0.4948, allocations: 0.9702 MB / 0.5372 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002059/0.4969, allocations: 1.944 MB / 0.5391 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003205/0.5001, allocations: 2.256 MB / 0.5413 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007115/0.5073, allocations: 5.352 MB / 0.5466 GB, free: 12.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.5073, allocations: 0 / 0.5466 GB, free: 12.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5073, allocations: 4 kB / 0.5466 GB, free: 12.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003023/0.5076, allocations: 0 / 0.5466 GB, free: 12.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.0124/0.52, allocations: 4.787 MB / 0.5512 GB, free: 7.277 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.5201, allocations: 8.031 kB / 0.5512 GB, free: 7.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007911/0.528, allocations: 1.947 MB / 0.5531 GB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005288/0.5334, allocations: 2.283 MB / 0.5554 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002503/0.5337, allocations: 251.5 kB / 0.5556 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000988/0.5347, allocations: 327.2 kB / 0.5559 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02115/0.5558, allocations: 10.23 MB / 0.5659 GB, free: 7.594 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003663/0.5563, allocations: 47.61 kB / 0.566 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001771/0.5581, allocations: 165 kB / 0.5661 GB, free: 7.422 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003359/0.5614, allocations: 1.909 MB / 0.568 GB, free: 5.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0184/0.5799, allocations: 8.176 MB / 0.576 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05358/0.6335, allocations: 39.41 MB / 0.6145 GB, free: 4.93 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008733/0.6423, allocations: 3.307 MB / 0.6177 GB, free: 1.457 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001952/0.6443, allocations: 1.055 MB / 0.6187 GB, free: 400 kB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01047/0.6548, allocations: 5.992 MB / 0.6246 GB, free: 10.05 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.858e-05/0.6549, allocations: 51.56 kB / 0.6246 GB, free: 9.992 MB / 478.1 MB Notification: Performance of pre-optimization done (n=148): time 4.889e-06/0.6549, allocations: 0 / 0.6246 GB, free: 9.992 MB / 478.1 MB Notification: Performance of matching and sorting (n=160): time 0.0265/0.6814, allocations: 9.509 MB / 0.6339 GB, free: 384 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.989e-05/0.6816, allocations: 157.5 kB / 0.634 GB, free: 192 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008399/0.69, allocations: 4.039 MB / 0.638 GB, free: 12.12 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003265/0.6903, allocations: 48.67 kB / 0.638 GB, free: 12.07 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003118/0.6935, allocations: 3.172 MB / 0.6411 GB, free: 8.898 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001038/0.6945, allocations: 0.6408 MB / 0.6418 GB, free: 8.262 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003072/0.6976, allocations: 1.21 MB / 0.6429 GB, free: 7.039 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.6978, allocations: 305.1 kB / 0.6432 GB, free: 6.738 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003406/0.7012, allocations: 1.667 MB / 0.6449 GB, free: 5.066 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006277/0.7075, allocations: 5.517 MB / 0.6503 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009765/0.7173, allocations: 7.801 MB / 0.6579 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001645/0.7175, allocations: 44 kB / 0.6579 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01527/0.7328, allocations: 6.919 MB / 0.6647 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000164/0.733, allocations: 60 kB / 0.6647 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002302/0.7333, allocations: 140 kB / 0.6649 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002317/0.7335, allocations: 184 kB / 0.665 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00462/0.7381, allocations: 1.439 MB / 0.6664 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002909/0.7384, allocations: 267 kB / 0.6667 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004694/0.7431, allocations: 299.6 kB / 0.667 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001018/0.7442, allocations: 383.9 kB / 0.6673 GB, free: 10.19 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.004528/0.7487, allocations: 2.028 MB / 0.6693 GB, free: 8.148 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008884/0.7496, allocations: 351.5 kB / 0.6697 GB, free: 7.801 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00116/0.7508, allocations: 410.6 kB / 0.6701 GB, free: 7.391 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.811e-05/0.7508, allocations: 16 kB / 0.6701 GB, free: 7.375 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.749e-05/0.7509, allocations: 4 kB / 0.6701 GB, free: 7.371 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.968e-05/0.7509, allocations: 15.91 kB / 0.6701 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/0.7636, allocations: 5.847 MB / 0.6758 GB, free: 1.234 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.743e-05/0.7637, allocations: 20.47 kB / 0.6758 GB, free: 1.215 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.7647, allocations: 291.6 kB / 0.6761 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.912e-05/0.7648, allocations: 24 kB / 0.6761 GB, free: 0.9062 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/0.7649, allocations: 48 kB / 0.6762 GB, free: 0.8594 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.583e-05/0.7649, allocations: 35.86 kB / 0.6762 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.85e-05/0.765, allocations: 31.81 kB / 0.6762 GB, free: 0.793 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004426/0.7694, allocations: 3.31 MB / 0.6795 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/0.7706, allocations: 416.5 kB / 0.6799 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007947/0.7714, allocations: 55.92 kB / 0.6799 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/0.773, allocations: 67.95 kB / 0.68 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.7732, allocations: 142.6 kB / 0.6801 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.7733, allocations: 68 kB / 0.6802 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005324/0.7787, allocations: 2.507 MB / 0.6826 GB, free: 9.965 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.62e-07/0.7787, allocations: 3.938 kB / 0.6826 GB, free: 9.961 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007031/0.7857, allocations: 0.8828 MB / 0.6835 GB, free: 9.078 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.0008672/0.7866, allocations: 204.8 kB / 0.6837 GB, free: 8.871 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007622/0.7943, allocations: 3.992 MB / 0.6876 GB, free: 4.906 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.691e-05/0.7943, allocations: 8.312 kB / 0.6876 GB, free: 4.898 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.7956, allocations: 0.755 MB / 0.6883 GB, free: 4.148 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003956/0.7995, allocations: 467.2 kB / 0.6888 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0204/0.82, allocations: 11.22 MB / 0.6997 GB, free: 8.199 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0061/0.8261, allocations: 3.173 MB / 0.7028 GB, free: 4.996 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/0.8272, allocations: 287.4 kB / 0.7031 GB, free: 4.715 MB / 0.545 GB Notification: Performance of SimCode: time 1.182e-06/0.8272, allocations: 0 / 0.7031 GB, free: 4.715 MB / 0.545 GB Notification: Performance of Templates: time 0.3382/1.165, allocations: 52.94 MB / 0.7548 GB, free: 165.6 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