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.0008102/0.0008102, allocations: 95.25 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009492/0.0009493, allocations: 207.7 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.7 MB / 247.5 MB, free: 11.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2137/0.2137, allocations: 46.18 MB / 345.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002506, allocations: 8 kB / 420.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1065, allocations: 63.56 MB / 483.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.2573/0.3638, allocations: 41.39 MB / 0.5128 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01858/0.3824, allocations: 9.086 MB / 0.5217 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00771/0.3902, allocations: 183.7 kB / 0.5219 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001661/0.3919, allocations: 433.9 kB / 0.5223 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005352/0.3972, allocations: 1.735 MB / 0.524 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001933/0.3992, allocations: 0.7112 MB / 0.5247 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008077/0.4073, allocations: 6.212 MB / 0.5307 GB, free: 6.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006572/0.4139, allocations: 4.535 MB / 0.5352 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002427/0.4163, allocations: 1.161 MB / 0.5363 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003024/0.4194, allocations: 2.106 MB / 0.5384 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008613/0.4203, allocations: 149.8 kB / 0.5385 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002448/0.4227, allocations: 0.8255 MB / 0.5393 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002213/0.425, allocations: 1.727 MB / 0.541 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003271/0.4283, allocations: 2.019 MB / 0.543 GB, free: 164 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005798/0.4341, allocations: 5.167 MB / 0.548 GB, free: 12.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.4341, allocations: 7.984 kB / 0.548 GB, free: 12.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.4341, allocations: 0 / 0.548 GB, free: 12.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002139/0.4343, allocations: 4 kB / 0.548 GB, free: 12.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.007636/0.442, allocations: 3.913 MB / 0.5518 GB, free: 8.773 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.442, allocations: 8.875 kB / 0.5518 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00749/0.4495, allocations: 1.994 MB / 0.5538 GB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004205/0.4538, allocations: 2.294 MB / 0.556 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002182/0.454, allocations: 255.6 kB / 0.5563 GB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009223/0.455, allocations: 329.3 kB / 0.5566 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01717/0.4721, allocations: 10.25 MB / 0.5666 GB, free: 9.004 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/0.4723, allocations: 47.53 kB / 0.5666 GB, free: 8.957 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006136/0.4729, allocations: 161.4 kB / 0.5668 GB, free: 8.836 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002779/0.4757, allocations: 1.902 MB / 0.5687 GB, free: 6.941 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01666/0.4924, allocations: 8.204 MB / 0.5767 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04506/0.5375, allocations: 39.44 MB / 0.6152 GB, free: 6.293 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008192/0.5457, allocations: 3.308 MB / 0.6184 GB, free: 2.82 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.5474, allocations: 1.057 MB / 0.6194 GB, free: 1.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008276/0.5557, allocations: 5.993 MB / 0.6253 GB, free: 11.41 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.5557, allocations: 63.44 kB / 0.6254 GB, free: 11.34 MB / 478.1 MB Notification: Performance of pre-optimization done (n=148): time 4.088e-06/0.5557, allocations: 0 / 0.6254 GB, free: 11.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=160): time 0.02365/0.5794, allocations: 9.545 MB / 0.6347 GB, free: 1.691 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.5795, allocations: 145.5 kB / 0.6348 GB, free: 1.516 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006319/0.5858, allocations: 4.046 MB / 0.6388 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001811/0.586, allocations: 45.7 kB / 0.6388 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002202/0.5882, allocations: 3.185 MB / 0.6419 GB, free: 10.21 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006669/0.5889, allocations: 0.6362 MB / 0.6425 GB, free: 9.574 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008302/0.5898, allocations: 0.5152 MB / 0.643 GB, free: 9.051 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.941e-05/0.5899, allocations: 305.1 kB / 0.6433 GB, free: 8.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002902/0.5928, allocations: 1.671 MB / 0.645 GB, free: 7.074 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005442/0.5982, allocations: 5.529 MB / 0.6504 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008648/0.6069, allocations: 7.809 MB / 0.658 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001111/0.607, allocations: 40 kB / 0.658 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01245/0.6195, allocations: 6.921 MB / 0.6648 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001397/0.6197, allocations: 67.94 kB / 0.6649 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001924/0.6199, allocations: 140 kB / 0.665 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001886/0.6201, allocations: 180 kB / 0.6652 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004394/0.6245, allocations: 1.439 MB / 0.6666 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002328/0.6247, allocations: 274.9 kB / 0.6668 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003905/0.6287, allocations: 299.5 kB / 0.6671 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007511/0.6294, allocations: 380 kB / 0.6675 GB, free: 12.16 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.003543/0.633, allocations: 2.036 MB / 0.6695 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007191/0.6337, allocations: 347.5 kB / 0.6698 GB, free: 9.773 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.6348, allocations: 414.6 kB / 0.6702 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.098e-05/0.6348, allocations: 16 kB / 0.6702 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.6348, allocations: 0 / 0.6702 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.392e-05/0.6349, allocations: 15.91 kB / 0.6702 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/0.6458, allocations: 5.852 MB / 0.6759 GB, free: 3.199 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.713e-05/0.6458, allocations: 20 kB / 0.676 GB, free: 3.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.6469, allocations: 287.6 kB / 0.6762 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.902e-05/0.6469, allocations: 24 kB / 0.6763 GB, free: 2.875 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.6471, allocations: 48 kB / 0.6763 GB, free: 2.828 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.218e-05/0.6471, allocations: 39.86 kB / 0.6763 GB, free: 2.789 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.682e-05/0.6471, allocations: 23.88 kB / 0.6764 GB, free: 2.766 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004223/0.6513, allocations: 3.324 MB / 0.6796 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.6524, allocations: 424.5 kB / 0.68 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006407/0.6531, allocations: 55.12 kB / 0.6801 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001548/0.6546, allocations: 63.95 kB / 0.6801 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.6548, allocations: 155.4 kB / 0.6803 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.655, allocations: 64 kB / 0.6803 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004633/0.6596, allocations: 2.507 MB / 0.6828 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6596, allocations: 0 / 0.6828 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005231/0.6649, allocations: 0.8828 MB / 0.6836 GB, free: 11.03 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.0005383/0.6654, allocations: 205.2 kB / 0.6838 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006512/0.6719, allocations: 3.801 MB / 0.6876 GB, free: 7.051 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/0.672, allocations: 4 kB / 0.6876 GB, free: 7.047 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.6732, allocations: 0.7638 MB / 0.6883 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01192/0.6851, allocations: 472.5 kB / 0.6888 GB, free: 5.828 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01787/0.703, allocations: 11.31 MB / 0.6998 GB, free: 10.24 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004364/0.7074, allocations: 3.165 MB / 0.7029 GB, free: 7.047 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008249/0.7082, allocations: 291.4 kB / 0.7032 GB, free: 6.762 MB / 0.545 GB Notification: Performance of SimCode: time 1.113e-06/0.7082, allocations: 0 / 0.7032 GB, free: 6.762 MB / 0.545 GB Notification: Performance of Templates: time 0.2964/1.005, allocations: 52.13 MB / 0.7541 GB, free: 166.3 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