Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001521/0.00152, allocations: 186.3 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.926/1.926, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001141/0.001141, allocations: 96.3 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5285/0.5285, allocations: 43.56 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004884/0.0004883, allocations: 12 kB / 431.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1285, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5007/0.6292, allocations: 107.3 MB / 0.5835 GB, free: 11.35 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.6296, allocations: 79.95 kB / 0.5836 GB, free: 11.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7967/1.426, allocations: 103.8 MB / 0.685 GB, free: 86.74 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.426, allocations: 1.031 kB / 0.685 GB, free: 86.74 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003632/1.427, allocations: 106.9 kB / 0.6851 GB, free: 86.74 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.02444/1.451, allocations: 5.697 MB / 0.6906 GB, free: 84.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/1.451, allocations: 12.31 kB / 0.6906 GB, free: 84.46 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05007/1.501, allocations: 6.882 MB / 0.6974 GB, free: 84.11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02772/1.529, allocations: 7.53 MB / 0.7047 GB, free: 83.37 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007102/1.53, allocations: 373.5 kB / 0.7051 GB, free: 83.36 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003183/1.533, allocations: 0.4946 MB / 0.7055 GB, free: 83.35 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04102/1.574, allocations: 12.35 MB / 0.7176 GB, free: 80.35 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004885/1.575, allocations: 72.89 kB / 0.7177 GB, free: 80.35 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002457/1.577, allocations: 240.8 kB / 0.7179 GB, free: 80.35 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002916/1.58, allocations: 1.137 MB / 0.719 GB, free: 80.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03231/1.613, allocations: 10.28 MB / 0.7291 GB, free: 79.02 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08142/1.694, allocations: 55.71 MB / 0.7835 GB, free: 37.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02442/1.719, allocations: 5.709 MB / 0.789 GB, free: 35.63 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0201/1.739, allocations: 8.812 MB / 0.7976 GB, free: 31.12 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.109e-05/1.739, allocations: 51.59 kB / 0.7977 GB, free: 31.07 MB / 490.7 MB Notification: Performance of pre-optimization done (n=206): time 6.152e-06/1.739, allocations: 0 / 0.7977 GB, free: 31.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=265): time 0.2214/1.96, allocations: 36 MB / 0.8329 GB, free: 7.961 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.731e-05/1.96, allocations: 209.9 kB / 0.8331 GB, free: 7.711 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009436/1.97, allocations: 4.229 MB / 0.8372 GB, free: 3.488 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007866/1.971, allocations: 69.64 kB / 0.8372 GB, free: 3.414 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003062/1.974, allocations: 3.439 MB / 0.8406 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001905/1.976, allocations: 0.9793 MB / 0.8416 GB, free: 15 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00105/1.977, allocations: 136.7 kB / 0.8417 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005371/1.977, allocations: 0.5959 MB / 0.8423 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008334/1.986, allocations: 3.004 MB / 0.8452 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01227/1.998, allocations: 6.813 MB / 0.8519 GB, free: 2.559 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/2.01, allocations: 4.431 MB / 0.8562 GB, free: 14.12 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001042/2.01, allocations: 40 kB / 0.8562 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.04452/2.054, allocations: 12.9 MB / 0.8688 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000122/2.054, allocations: 64 kB / 0.8689 GB, free: 1.113 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002031/2.055, allocations: 132 kB / 0.869 GB, free: 0.9844 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3845/2.439, allocations: 4.082 MB / 0.873 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009209/2.448, allocations: 1.427 MB / 0.8744 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06065/2.509, allocations: 26.88 MB / 0.9006 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008683/2.518, allocations: 397.4 kB / 0.901 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001852/2.52, allocations: 403.8 kB / 0.9014 GB, free: 100.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (763): * Single equations (assignments): 757 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.007198/2.527, allocations: 2.47 MB / 0.9038 GB, free: 99.19 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00134/2.528, allocations: 449.2 kB / 0.9042 GB, free: 99.19 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03488/2.563, allocations: 8.12 MB / 0.9122 GB, free: 96.43 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.702e-05/2.563, allocations: 27.28 kB / 0.9122 GB, free: 96.43 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.633e-05/2.563, allocations: 17.88 kB / 0.9122 GB, free: 96.43 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.391e-05/2.564, allocations: 14.56 kB / 0.9122 GB, free: 96.43 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05624/2.62, allocations: 16.72 MB / 0.9285 GB, free: 90.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.313e-05/2.62, allocations: 7.594 kB / 0.9286 GB, free: 90.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002811/2.623, allocations: 298.6 kB / 0.9288 GB, free: 90.22 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0189/2.642, allocations: 3.78 MB / 0.9325 GB, free: 89.45 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007165/2.642, allocations: 47.7 kB / 0.9326 GB, free: 89.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05391/2.696, allocations: 25.63 MB / 0.9576 GB, free: 76.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.296e-06/2.696, allocations: 6.875 kB / 0.9576 GB, free: 76.84 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03556/2.732, allocations: 12.65 MB / 0.97 GB, free: 71.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003714/2.736, allocations: 0.9495 MB / 0.9709 GB, free: 70.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001697/2.738, allocations: 46.66 kB / 0.9709 GB, free: 70.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004839/2.742, allocations: 165.7 kB / 0.9711 GB, free: 70.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001383/2.744, allocations: 194.4 kB / 0.9713 GB, free: 70.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003621/2.744, allocations: 72.56 kB / 0.9713 GB, free: 70.75 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007765/2.752, allocations: 3.001 MB / 0.9743 GB, free: 69.75 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.11e-07/2.752, allocations: 0 / 0.9743 GB, free: 69.75 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009803/2.762, allocations: 1.431 MB / 0.9757 GB, free: 69.59 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * 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 (161): * Single equations (assignments): 155 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.001165/2.763, allocations: 190.9 kB / 0.9759 GB, free: 69.48 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02101/2.784, allocations: 8.136 MB / 0.9838 GB, free: 66.43 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.395e-05/2.784, allocations: 3.812 kB / 0.9838 GB, free: 66.43 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00957/2.794, allocations: 3.474 MB / 0.9872 GB, free: 64.44 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004982/2.799, allocations: 0.5472 MB / 0.9877 GB, free: 63.98 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03387/2.833, allocations: 14.98 MB / 1.002 GB, free: 50.53 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009398/2.842, allocations: 4.043 MB / 1.006 GB, free: 47.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001933/2.844, allocations: 332.4 kB / 1.007 GB, free: 47.21 MB / 0.5105 GB Notification: Performance of SimCode: time 1.543e-06/2.844, allocations: 0 / 1.007 GB, free: 47.21 MB / 0.5105 GB Notification: Performance of Templates: time 0.6289/3.473, allocations: 135.4 MB / 1.139 GB, free: 88.31 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches