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.001133/0.001133, allocations: 201.5 kB / 18.11 MB, free: 3.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 226.5 MB / 245.4 MB, free: 6.41 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008941/0.0008943, allocations: 100.7 kB / 297.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4153/0.4153, allocations: 44.82 MB / 394.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003876/0.000388, allocations: 8 kB / 467.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4144/0.4148, allocations: 62.96 MB / 0.5184 GB, free: 37.52 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.5654, allocations: 105.6 MB / 0.6215 GB, free: 15.68 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.5657, allocations: 79.95 kB / 0.6216 GB, free: 15.6 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5552/1.121, allocations: 100.1 MB / 0.7193 GB, free: 97.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.121, allocations: 0 / 0.7193 GB, free: 97.91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002998/1.121, allocations: 102.6 kB / 0.7194 GB, free: 97.91 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.03191/1.153, allocations: 6.431 MB / 0.7257 GB, free: 95.76 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/1.153, allocations: 7.438 kB / 0.7257 GB, free: 95.76 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01455/1.168, allocations: 3.008 MB / 0.7286 GB, free: 95.41 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.013/1.181, allocations: 5.276 MB / 0.7338 GB, free: 93.92 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004401/1.181, allocations: 366.6 kB / 0.7341 GB, free: 93.79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00309/1.184, allocations: 494.9 kB / 0.7346 GB, free: 93.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02812/1.213, allocations: 12.53 MB / 0.7468 GB, free: 87.12 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002887/1.213, allocations: 76.75 kB / 0.7469 GB, free: 87.07 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001115/1.214, allocations: 236.5 kB / 0.7471 GB, free: 86.95 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001677/1.216, allocations: 1.247 MB / 0.7484 GB, free: 86.72 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02174/1.237, allocations: 10.65 MB / 0.7588 GB, free: 83.45 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06436/1.302, allocations: 57.89 MB / 0.8153 GB, free: 24.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01294/1.315, allocations: 5.356 MB / 0.8205 GB, free: 18.75 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003251/1.318, allocations: 2.466 MB / 0.8229 GB, free: 16.28 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01589/1.334, allocations: 12.23 MB / 0.8349 GB, free: 3.574 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/1.334, allocations: 63.8 kB / 0.8349 GB, free: 3.504 MB / 490.7 MB Notification: Performance of pre-optimization done (n=219): time 5.2e-06/1.334, allocations: 7.938 kB / 0.8349 GB, free: 3.496 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.06674/1.401, allocations: 24.81 MB / 0.8592 GB, free: 10.38 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003617/1.405, allocations: 4.614 MB / 0.8637 GB, free: 5.301 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0107/1.415, allocations: 4.597 MB / 0.8682 GB, free: 0.6875 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008826/1.416, allocations: 61.3 kB / 0.8682 GB, free: 0.625 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003535/1.42, allocations: 3.526 MB / 0.8717 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002538/1.422, allocations: 1.013 MB / 0.8727 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001625/1.424, allocations: 150.8 kB / 0.8728 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001076/1.425, allocations: 0.6282 MB / 0.8734 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007043/1.432, allocations: 3.231 MB / 0.8766 GB, free: 8.086 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3599/1.792, allocations: 7.518 MB / 0.8839 GB, free: 126.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01527/1.807, allocations: 11.32 MB / 0.895 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002198/1.808, allocations: 42.66 kB / 0.895 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.03331/1.841, allocations: 13.26 MB / 0.908 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003837/1.841, allocations: 68.34 kB / 0.908 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02048/1.862, allocations: 6.499 MB / 0.9144 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0182/1.88, allocations: 3.342 MB / 0.9176 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01165/1.892, allocations: 1.735 MB / 0.9193 GB, free: 116.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02905/1.921, allocations: 15.86 MB / 0.9348 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01465/1.936, allocations: 0.7678 MB / 0.9356 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002633/1.938, allocations: 459.1 kB / 0.936 GB, free: 106.5 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.007158/1.946, allocations: 2.337 MB / 0.9383 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00156/1.947, allocations: 417.7 kB / 0.9387 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01672/1.964, allocations: 7.101 MB / 0.9456 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01461/1.979, allocations: 6.438 MB / 0.9519 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.307e-05/1.979, allocations: 7.625 kB / 0.9519 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-05/1.979, allocations: 18.38 kB / 0.9519 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0368/2.016, allocations: 15.39 MB / 0.967 GB, free: 96.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.651e-05/2.016, allocations: 3.969 kB / 0.967 GB, free: 96.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002275/2.018, allocations: 447.3 kB / 0.9674 GB, free: 96.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009936/2.028, allocations: 3.342 MB / 0.9707 GB, free: 95.91 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008574/2.029, allocations: 92.19 kB / 0.9707 GB, free: 95.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01709/2.046, allocations: 16.49 MB / 0.9868 GB, free: 81.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002427/2.048, allocations: 4.428 MB / 0.9912 GB, free: 77.28 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02058/2.069, allocations: 10.62 MB / 1.002 GB, free: 67.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001847/2.071, allocations: 495.3 kB / 1.002 GB, free: 66.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001987/2.073, allocations: 63.98 kB / 1.002 GB, free: 66.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00406/2.077, allocations: 346.2 kB / 1.002 GB, free: 66.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001117/2.078, allocations: 197.6 kB / 1.003 GB, free: 66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005892/2.079, allocations: 87.88 kB / 1.003 GB, free: 65.92 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006616/2.085, allocations: 2.875 MB / 1.005 GB, free: 63.04 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.7e-07/2.085, allocations: 0 / 1.005 GB, free: 63.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01048/2.096, allocations: 1.537 MB / 1.007 GB, free: 61.52 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.001197/2.097, allocations: 229.6 kB / 1.007 GB, free: 61.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01717/2.114, allocations: 9.368 MB / 1.016 GB, free: 51.78 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/2.114, allocations: 0 / 1.016 GB, free: 51.78 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008648/2.123, allocations: 4.659 MB / 1.021 GB, free: 46.94 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008594/2.132, allocations: 0.5361 MB / 1.021 GB, free: 46.41 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02613/2.158, allocations: 15.47 MB / 1.037 GB, free: 31.04 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006391/2.164, allocations: 3.693 MB / 1.04 GB, free: 27.34 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006501/2.171, allocations: 2.25 MB / 1.042 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/2.172, allocations: 307.3 kB / 1.043 GB, free: 24.79 MB / 0.5261 GB Notification: Performance of SimCode: time 6.42e-07/2.172, allocations: 4 kB / 1.043 GB, free: 24.79 MB / 0.5261 GB Notification: Performance of Templates: time 0.3582/2.53, allocations: 56.32 MB / 1.098 GB, free: 141.9 MB / 0.5573 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/jenkins1/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