Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Forces.Spring2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.|body1.Q.1.|body1.Q.2.|body1.Q.3.|body1.Q.4.|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.Q.1.|body2.Q.2.|body2.Q.3.|body2.Q.4.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2") translateModel(ModelicaTest.MultiBody.Forces.Spring2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.|body1.Q.1.|body1.Q.2.|body1.Q.3.|body1.Q.4.|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.Q.1.|body2.Q.2.|body2.Q.3.|body2.Q.4.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 198 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 227.2 MB / 245 MB, free: 5.848 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008463/0.0008462, allocations: 102.1 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.281/0.281, allocations: 45.23 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002182/0.0002182, allocations: 4 kB / 468.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2601, allocations: 63.24 MB / 0.5192 GB, free: 37.4 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.3772, allocations: 105.6 MB / 0.6223 GB, free: 13.79 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.3774, allocations: 83.95 kB / 0.6224 GB, free: 13.71 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4418/0.8193, allocations: 103.4 MB / 0.7234 GB, free: 99.36 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.8193, allocations: 0 / 0.7234 GB, free: 99.36 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000345/0.8197, allocations: 96.97 kB / 0.7235 GB, free: 99.36 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.02699/0.8467, allocations: 6.497 MB / 0.7298 GB, free: 96.93 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.8468, allocations: 9.531 kB / 0.7298 GB, free: 96.93 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01338/0.8602, allocations: 3.094 MB / 0.7328 GB, free: 96.54 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01473/0.8749, allocations: 6.09 MB / 0.7388 GB, free: 94.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003804/0.8753, allocations: 364.8 kB / 0.7391 GB, free: 94.46 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002316/0.8777, allocations: 498.9 kB / 0.7396 GB, free: 94.32 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02522/0.9029, allocations: 12.64 MB / 0.7519 GB, free: 86.27 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002219/0.9032, allocations: 68.91 kB / 0.752 GB, free: 86.23 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001139/0.9043, allocations: 239.3 kB / 0.7522 GB, free: 86.11 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001476/0.9058, allocations: 1.245 MB / 0.7535 GB, free: 85.65 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01843/0.9242, allocations: 10.81 MB / 0.764 GB, free: 76.36 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05116/0.9754, allocations: 57.97 MB / 0.8206 GB, free: 16.95 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01207/0.9875, allocations: 5.36 MB / 0.8259 GB, free: 11.42 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01547/1.003, allocations: 12.31 MB / 0.8379 GB, free: 14.65 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/1.003, allocations: 59.81 kB / 0.8379 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=219): time 4.538e-06/1.003, allocations: 4 kB / 0.8379 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=258): time 0.05768/1.061, allocations: 25.07 MB / 0.8624 GB, free: 5.156 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002922/1.064, allocations: 4.635 MB / 0.8669 GB, free: 48 kB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005897/1.07, allocations: 4.111 MB / 0.871 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003749/1.07, allocations: 64.28 kB / 0.871 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00204/1.072, allocations: 3.516 MB / 0.8745 GB, free: 8.348 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009246/1.073, allocations: 1.021 MB / 0.8754 GB, free: 7.336 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003431/1.073, allocations: 151.4 kB / 0.8756 GB, free: 7.191 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003669/1.074, allocations: 0.6204 MB / 0.8762 GB, free: 6.566 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004677/1.078, allocations: 3.235 MB / 0.8794 GB, free: 3.328 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2322/1.311, allocations: 7.479 MB / 0.8867 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008095/1.319, allocations: 4.779 MB / 0.8913 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000248/1.319, allocations: 45.28 kB / 0.8914 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02704/1.346, allocations: 13.27 MB / 0.9043 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001937/1.346, allocations: 74.73 kB / 0.9044 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01609/1.362, allocations: 6.498 MB / 0.9107 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01064/1.373, allocations: 3.352 MB / 0.914 GB, free: 125.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00577/1.379, allocations: 1.731 MB / 0.9157 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0148/1.394, allocations: 16.2 MB / 0.9315 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007217/1.401, allocations: 0.7673 MB / 0.9323 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001527/1.403, allocations: 456.1 kB / 0.9327 GB, free: 115.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[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 (906): * Single equations (assignments): 886 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005098/1.408, allocations: 2.331 MB / 0.935 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/1.409, allocations: 415.8 kB / 0.9354 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/1.422, allocations: 7.097 MB / 0.9423 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01123/1.434, allocations: 6.437 MB / 0.9486 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.953e-05/1.434, allocations: 7.156 kB / 0.9486 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.761e-05/1.434, allocations: 11.53 kB / 0.9486 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02814/1.462, allocations: 15.42 MB / 0.9637 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.216e-05/1.462, allocations: 8.406 kB / 0.9637 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/1.464, allocations: 448.5 kB / 0.9641 GB, free: 105 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00926/1.473, allocations: 3.339 MB / 0.9674 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005613/1.474, allocations: 83 kB / 0.9675 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01551/1.489, allocations: 16.86 MB / 0.9839 GB, free: 89.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002356/1.492, allocations: 4.459 MB / 0.9883 GB, free: 84.34 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01746/1.509, allocations: 11.31 MB / 0.9993 GB, free: 72.69 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/1.511, allocations: 490.9 kB / 0.9998 GB, free: 72.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009639/1.512, allocations: 74.7 kB / 0.9999 GB, free: 72.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00266/1.514, allocations: 339.4 kB / 1 GB, free: 71.79 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005017/1.515, allocations: 205.6 kB / 1 GB, free: 71.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001991/1.515, allocations: 79.95 kB / 1 GB, free: 71.51 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004803/1.52, allocations: 2.883 MB / 1.003 GB, free: 68.63 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.51e-07/1.52, allocations: 0 / 1.003 GB, free: 68.63 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007727/1.528, allocations: 1.534 MB / 1.005 GB, free: 67.11 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * 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 (196): * Single equations (assignments): 182 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006349/1.528, allocations: 224 kB / 1.005 GB, free: 66.89 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01383/1.542, allocations: 9.365 MB / 1.014 GB, free: 57.37 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.164e-05/1.542, allocations: 4 kB / 1.014 GB, free: 57.36 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007459/1.55, allocations: 4.652 MB / 1.019 GB, free: 52.53 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00318/1.553, allocations: 0.5124 MB / 1.019 GB, free: 52.04 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02049/1.573, allocations: 15.42 MB / 1.034 GB, free: 36.71 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003251/1.577, allocations: 3.798 MB / 1.038 GB, free: 32.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005002/1.582, allocations: 2.248 MB / 1.04 GB, free: 30.65 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008319/1.583, allocations: 307.3 kB / 1.04 GB, free: 30.35 MB / 0.5261 GB Notification: Performance of SimCode: time 7.02e-07/1.583, allocations: 0 / 1.04 GB, free: 30.35 MB / 0.5261 GB Notification: Performance of Templates: time 0.3486/1.931, allocations: 56.15 MB / 1.095 GB, free: 126.4 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring2/Spring2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches