Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001475/0.001474, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001475/0.001475, allocations: 82.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3392/0.3392, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.827e-05/3.838e-05, allocations: 8 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1165, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5143/0.6308, allocations: 102.9 MB / 0.5733 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.6311, allocations: 79.42 kB / 0.5734 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.429/1.06, allocations: 98.71 MB / 0.6698 GB, free: 6.012 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.06, allocations: 0 / 0.6698 GB, free: 6.012 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003515/1.061, allocations: 92 kB / 0.6698 GB, free: 5.922 MB / 474.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.04531/1.106, allocations: 5.926 MB / 0.6756 GB, free: 15.92 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/1.106, allocations: 8.031 kB / 0.6756 GB, free: 15.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02612/1.132, allocations: 2.942 MB / 0.6785 GB, free: 12.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02942/1.162, allocations: 7.243 MB / 0.6856 GB, free: 5.656 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006051/1.162, allocations: 365.6 kB / 0.6859 GB, free: 5.297 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002931/1.165, allocations: 499.7 kB / 0.6864 GB, free: 4.809 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04206/1.207, allocations: 12.46 MB / 0.6986 GB, free: 7.121 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000352/1.208, allocations: 75.33 kB / 0.6987 GB, free: 7.047 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002427/1.21, allocations: 243.8 kB / 0.6989 GB, free: 6.809 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003592/1.214, allocations: 1.241 MB / 0.7001 GB, free: 5.562 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3867/1.601, allocations: 10.46 MB / 0.7103 GB, free: 111.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09795/1.699, allocations: 58.03 MB / 0.767 GB, free: 77.83 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02514/1.724, allocations: 5.346 MB / 0.7722 GB, free: 77.02 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005884/1.73, allocations: 2.447 MB / 0.7746 GB, free: 76.02 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03044/1.76, allocations: 12.33 MB / 0.7866 GB, free: 69.32 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.871e-05/1.76, allocations: 60.34 kB / 0.7867 GB, free: 69.26 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=219): time 6.412e-06/1.76, allocations: 0 / 0.7867 GB, free: 69.26 MB / 0.4948 GB Notification: Performance of matching and sorting (n=258): time 0.09657/1.857, allocations: 21.27 MB / 0.8075 GB, free: 62.44 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003698/1.861, allocations: 4.639 MB / 0.812 GB, free: 57.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009944/1.871, allocations: 4.007 MB / 0.8159 GB, free: 56.46 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008251/1.872, allocations: 62.8 kB / 0.816 GB, free: 56.41 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003064/1.875, allocations: 3.435 MB / 0.8193 GB, free: 53.69 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001864/1.877, allocations: 1.016 MB / 0.8203 GB, free: 52.95 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001282/1.878, allocations: 145.8 kB / 0.8205 GB, free: 52.84 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0007169/1.879, allocations: 0.6253 MB / 0.8211 GB, free: 52.39 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008032/1.887, allocations: 3.087 MB / 0.8241 GB, free: 51.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01104/1.898, allocations: 7.337 MB / 0.8312 GB, free: 43.88 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01063/1.908, allocations: 4.689 MB / 0.8358 GB, free: 39.96 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001645/1.909, allocations: 44 kB / 0.8359 GB, free: 39.92 MB / 0.4948 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.04254/1.951, allocations: 12.83 MB / 0.8484 GB, free: 29.32 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/1.951, allocations: 72 kB / 0.8485 GB, free: 29.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02464/1.976, allocations: 6.452 MB / 0.8548 GB, free: 24.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01945/1.996, allocations: 3.351 MB / 0.858 GB, free: 22.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01065/2.006, allocations: 1.734 MB / 0.8597 GB, free: 20.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02729/2.034, allocations: 15.82 MB / 0.8752 GB, free: 5.285 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01223/2.046, allocations: 0.7645 MB / 0.8759 GB, free: 4.52 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002052/2.048, allocations: 459.8 kB / 0.8764 GB, free: 4.074 MB / 0.4948 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 () * 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.00312/2.051, allocations: 0.6614 MB / 0.877 GB, free: 3.41 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001273/2.052, allocations: 422.6 kB / 0.8774 GB, free: 2.992 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02848/2.081, allocations: 7.061 MB / 0.8843 GB, free: 11.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02766/2.109, allocations: 6.395 MB / 0.8905 GB, free: 5.457 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-05/2.109, allocations: 12 kB / 0.8906 GB, free: 5.445 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.201e-05/2.109, allocations: 11.95 kB / 0.8906 GB, free: 5.434 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4186/2.528, allocations: 15.37 MB / 0.9056 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-05/2.528, allocations: 6.344 kB / 0.9056 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004745/2.532, allocations: 450 kB / 0.906 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01996/2.552, allocations: 3.339 MB / 0.9093 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009328/2.553, allocations: 80.81 kB / 0.9094 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03105/2.584, allocations: 16.47 MB / 0.9254 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003606/2.588, allocations: 4.413 MB / 0.9297 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03398/2.622, allocations: 11.24 MB / 0.9407 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001844/2.624, allocations: 0.4932 MB / 0.9412 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001968/2.626, allocations: 61.89 kB / 0.9413 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006304/2.632, allocations: 345.3 kB / 0.9416 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001358/2.634, allocations: 209.5 kB / 0.9418 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005256/2.634, allocations: 77.83 kB / 0.9419 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007614/2.642, allocations: 2.77 MB / 0.9446 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.092e-06/2.642, allocations: 2.625 kB / 0.9446 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01058/2.653, allocations: 1.53 MB / 0.9461 GB, free: 103.3 MB / 0.5105 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 () * 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.001286/2.654, allocations: 224.6 kB / 0.9463 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02534/2.679, allocations: 9.184 MB / 0.9553 GB, free: 102 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.574e-05/2.679, allocations: 1.859 kB / 0.9553 GB, free: 102 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01555/2.695, allocations: 4.614 MB / 0.9598 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005165/2.7, allocations: 0.5123 MB / 0.9603 GB, free: 99.95 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03382/2.734, allocations: 12.07 MB / 0.972 GB, free: 95.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009501/2.744, allocations: 3.812 MB / 0.9758 GB, free: 93.76 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002327/2.746, allocations: 358.7 kB / 0.9761 GB, free: 93.74 MB / 0.5105 GB Notification: Performance of SimCode: time 1.933e-06/2.746, allocations: 0 / 0.9761 GB, free: 93.74 MB / 0.5105 GB Notification: Performance of Templates: time 0.8274/3.573, allocations: 283.3 MB / 1.253 GB, free: 20.25 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring2/Spring2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches