Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.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.SpringDamperSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic1.s|prismatic1.v|sps1.s_damper|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries") translateModel(ModelicaTest.MultiBody.Forces.SpringDamperSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic1.s|prismatic1.v|sps1.s_damper|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00106/0.00106, allocations: 198.5 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 226.5 MB / 243.4 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007308/0.0007308, allocations: 96.75 kB / 295.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.2815/0.2815, allocations: 44.83 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003435/0.0003437, allocations: 8 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3102, allocations: 62.96 MB / 0.5159 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.SpringDamperSeries): time 0.0237/0.3339, allocations: 34.85 MB / 0.5499 GB, free: 12.46 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01718/0.3512, allocations: 7.495 MB / 0.5572 GB, free: 7.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007361/0.3586, allocations: 158 kB / 0.5574 GB, free: 7.297 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005869/0.3645, allocations: 1.781 MB / 0.5591 GB, free: 6.66 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01524/0.3798, allocations: 4.973 MB / 0.564 GB, free: 4.539 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002747/0.3825, allocations: 454.3 kB / 0.5644 GB, free: 4.328 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005417/0.388, allocations: 3.512 MB / 0.5678 GB, free: 2.652 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004974/0.393, allocations: 4.019 MB / 0.5718 GB, free: 20 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001579/0.3946, allocations: 0.9923 MB / 0.5727 GB, free: 15.02 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001851/0.3964, allocations: 1.557 MB / 0.5742 GB, free: 13.46 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003589/0.3968, allocations: 132 kB / 0.5744 GB, free: 13.33 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001928/0.3988, allocations: 0.897 MB / 0.5753 GB, free: 12.43 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001592/0.4004, allocations: 1.387 MB / 0.5766 GB, free: 11.04 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001898/0.4023, allocations: 1.691 MB / 0.5783 GB, free: 9.336 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004736/0.407, allocations: 4.791 MB / 0.5829 GB, free: 4.535 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4071, allocations: 0 / 0.5829 GB, free: 4.535 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4071, allocations: 0 / 0.5829 GB, free: 4.535 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001223/0.4072, allocations: 0 / 0.5829 GB, free: 4.535 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1473 * Number of variables: 1473 Notification: Performance of Generate backend data structure: time 0.005887/0.4131, allocations: 3.485 MB / 0.5863 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.4131, allocations: 8.031 kB / 0.5863 GB, free: 0.9766 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005332/0.4185, allocations: 1.856 MB / 0.5882 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002783/0.4213, allocations: 1.75 MB / 0.5899 GB, free: 13.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.4214, allocations: 229.7 kB / 0.5901 GB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004614/0.4219, allocations: 299.8 kB / 0.5904 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01631/0.4382, allocations: 10.61 MB / 0.6007 GB, free: 1.555 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.755e-05/0.4383, allocations: 39.69 kB / 0.6008 GB, free: 1.516 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003485/0.4387, allocations: 147.8 kB / 0.6009 GB, free: 1.371 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00309/0.4418, allocations: 2.04 MB / 0.6029 GB, free: 15.33 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01731/0.4591, allocations: 9.285 MB / 0.612 GB, free: 6.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04142/0.5006, allocations: 38.02 MB / 0.6491 GB, free: 14.98 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009805/0.5104, allocations: 4.185 MB / 0.6532 GB, free: 10.63 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002817/0.5133, allocations: 2.305 MB / 0.6554 GB, free: 8.316 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008168/0.5214, allocations: 6.024 MB / 0.6613 GB, free: 2.031 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/0.5215, allocations: 55.88 kB / 0.6614 GB, free: 1.969 MB / 474.7 MB Notification: Performance of pre-optimization done (n=181): time 4.258e-06/0.5215, allocations: 0 / 0.6614 GB, free: 1.969 MB / 474.7 MB Notification: Performance of matching and sorting (n=210): time 0.2572/0.7788, allocations: 21.91 MB / 0.6828 GB, free: 130.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.7789, allocations: 147.3 kB / 0.6829 GB, free: 130.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003856/0.7827, allocations: 3.366 MB / 0.6862 GB, free: 129.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003472/0.7831, allocations: 51.52 kB / 0.6862 GB, free: 129 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001251/0.7844, allocations: 2.8 MB / 0.689 GB, free: 126.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007003/0.7851, allocations: 0.7979 MB / 0.6898 GB, free: 126.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/0.7853, allocations: 115.3 kB / 0.6899 GB, free: 126.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002256/0.7856, allocations: 0.5597 MB / 0.6904 GB, free: 125.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002791/0.7884, allocations: 2.306 MB / 0.6927 GB, free: 125 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003998/0.7924, allocations: 5.758 MB / 0.6983 GB, free: 119.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00812/0.8005, allocations: 8.778 MB / 0.7069 GB, free: 112.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001323/0.8007, allocations: 34.72 kB / 0.7069 GB, free: 112.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01699/0.8177, allocations: 8.631 MB / 0.7153 GB, free: 109 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/0.8178, allocations: 57.19 kB / 0.7154 GB, free: 109 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001761/0.818, allocations: 126.3 kB / 0.7155 GB, free: 109 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003025/0.821, allocations: 1.033 MB / 0.7165 GB, free: 108.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004712/0.8258, allocations: 1.384 MB / 0.7179 GB, free: 108.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005095/0.8309, allocations: 5.402 MB / 0.7231 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004088/0.835, allocations: 322.9 kB / 0.7234 GB, free: 104.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006441/0.8357, allocations: 365.5 kB / 0.7238 GB, free: 104.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],s1.color[3],s1.color[2],s1.color[1],s1.massColor[3],s1.massColor[2],s1.massColor[1],sps1.color[3],sps1.color[2],sps1.color[1],sps1.color_b[3],sps1.color_b[2],sps1.color_b[1],sps1.color_a[3],sps1.color_a[2],sps1.color_a[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 (734): * Single equations (assignments): 727 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00288/0.8386, allocations: 1.938 MB / 0.7257 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005124/0.8391, allocations: 313.3 kB / 0.726 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005986/0.8451, allocations: 3.93 MB / 0.7298 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.898e-05/0.8451, allocations: 22.72 kB / 0.7298 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.8451, allocations: 3.625 kB / 0.7299 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.958e-05/0.8452, allocations: 13.03 kB / 0.7299 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01261/0.8578, allocations: 8.886 MB / 0.7385 GB, free: 96.58 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.8578, allocations: 3.938 kB / 0.7385 GB, free: 96.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001506/0.8594, allocations: 353.3 kB / 0.7389 GB, free: 96.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002105/0.8615, allocations: 0.8622 MB / 0.7397 GB, free: 95.66 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002223/0.8617, allocations: 38.44 kB / 0.7398 GB, free: 95.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003611/0.8653, allocations: 4.747 MB / 0.7444 GB, free: 91.01 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8654, allocations: 11.73 kB / 0.7444 GB, free: 91 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008187/0.8736, allocations: 6.86 MB / 0.7511 GB, free: 84.17 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008042/0.8744, allocations: 360.9 kB / 0.7515 GB, free: 83.79 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000319/0.8747, allocations: 32 kB / 0.7515 GB, free: 83.76 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.8759, allocations: 119.8 kB / 0.7516 GB, free: 83.64 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002667/0.8762, allocations: 117.1 kB / 0.7517 GB, free: 83.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.8763, allocations: 59.98 kB / 0.7518 GB, free: 83.47 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002312/0.8786, allocations: 2.065 MB / 0.7538 GB, free: 81.41 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8787, allocations: 0 / 0.7538 GB, free: 81.41 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003875/0.8825, allocations: 0.9662 MB / 0.7547 GB, free: 80.45 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (sps1.s_damper,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b,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 (178): * Single equations (assignments): 171 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003696/0.8829, allocations: 177.4 kB / 0.7549 GB, free: 80.28 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008018/0.8909, allocations: 6.078 MB / 0.7608 GB, free: 74.16 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.891, allocations: 7.938 kB / 0.7608 GB, free: 74.15 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0033/0.8943, allocations: 2.46 MB / 0.7632 GB, free: 71.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.8966, allocations: 336.3 kB / 0.7636 GB, free: 71.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/0.9092, allocations: 11.15 MB / 0.7745 GB, free: 60.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002302/0.9115, allocations: 3.026 MB / 0.7774 GB, free: 57.05 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/0.9126, allocations: 283.4 kB / 0.7777 GB, free: 56.78 MB / 490.7 MB Notification: Performance of SimCode: time 8.11e-07/0.9126, allocations: 0 / 0.7777 GB, free: 56.78 MB / 490.7 MB Notification: Performance of Templates: time 0.3129/1.226, allocations: 123.8 MB / 0.8985 GB, free: 162.2 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/SpringDamperSeries/SpringDamperSeries.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches