Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 119.2 kB / 17.09 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001888/0.001888, allocations: 193.2 kB / 18.01 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2108/0.2108, allocations: 43.53 MB / 314.8 MB, free: 440 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 63.91 kB / 442.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1173, allocations: 57.78 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.0124/0.1297, allocations: 12.11 MB / 0.5003 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008966/0.1387, allocations: 4.307 MB / 0.5046 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002389/0.1412, allocations: 75.75 kB / 0.5046 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006009/0.1472, allocations: 2.745 MB / 0.5073 GB, free: 8.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007222/0.1545, allocations: 2.07 MB / 0.5093 GB, free: 6.398 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002992/0.1575, allocations: 0.9202 MB / 0.5102 GB, free: 5.477 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00871/0.1662, allocations: 5.244 MB / 0.5153 GB, free: 224 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005738/0.172, allocations: 3.374 MB / 0.5186 GB, free: 12.79 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003515/0.1756, allocations: 1.736 MB / 0.5203 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004356/0.1799, allocations: 2.532 MB / 0.5228 GB, free: 8.512 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001399/0.1814, allocations: 384 kB / 0.5232 GB, free: 8.137 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003422/0.1848, allocations: 1.408 MB / 0.5246 GB, free: 6.727 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003216/0.1881, allocations: 2.225 MB / 0.5267 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00541/0.1935, allocations: 2.451 MB / 0.5291 GB, free: 2.031 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2823/0.4758, allocations: 7.907 MB / 0.5368 GB, free: 16.61 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.4759, allocations: 0.75 kB / 0.5368 GB, free: 16.61 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4759, allocations: 0 / 0.5368 GB, free: 16.61 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002981/0.4762, allocations: 0 / 0.5368 GB, free: 16.61 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.0162/0.4924, allocations: 5.532 MB / 0.5422 GB, free: 14.53 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.4925, allocations: 12.45 kB / 0.5423 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01218/0.5047, allocations: 2.473 MB / 0.5447 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009612/0.5143, allocations: 3.52 MB / 0.5481 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002778/0.5146, allocations: 243.2 kB / 0.5483 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001893/0.5165, allocations: 337.1 kB / 0.5487 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02161/0.5381, allocations: 10.87 MB / 0.5593 GB, free: 9.883 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001211/0.5383, allocations: 54.16 kB / 0.5593 GB, free: 9.875 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004324/0.5387, allocations: 156.4 kB / 0.5595 GB, free: 9.805 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002877/0.5416, allocations: 2 MB / 0.5614 GB, free: 9.297 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01646/0.5581, allocations: 9.44 MB / 0.5707 GB, free: 5.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05312/0.6112, allocations: 41.07 MB / 0.6108 GB, free: 11.95 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0115/0.6228, allocations: 4.267 MB / 0.6149 GB, free: 7.555 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002867/0.6257, allocations: 1.926 MB / 0.6168 GB, free: 5.629 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01345/0.6392, allocations: 7.624 MB / 0.6243 GB, free: 13.69 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/0.6392, allocations: 57.64 kB / 0.6243 GB, free: 13.63 MB / 478.1 MB Notification: Performance of pre-optimization done (n=180): time 6.041e-06/0.6393, allocations: 0 / 0.6243 GB, free: 13.63 MB / 478.1 MB Notification: Performance of matching and sorting (n=236): time 0.1821/0.8214, allocations: 40.97 MB / 0.6643 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.8215, allocations: 209.7 kB / 0.6645 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01011/0.8316, allocations: 4.337 MB / 0.6688 GB, free: 148 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0008021/0.8325, allocations: 57.7 kB / 0.6688 GB, free: 84 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002953/0.8355, allocations: 3.162 MB / 0.6719 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001622/0.8371, allocations: 0.882 MB / 0.6728 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004567/0.8417, allocations: 1.351 MB / 0.6741 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.8418, allocations: 313.1 kB / 0.6744 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006239/0.8481, allocations: 3.624 MB / 0.6779 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008978/0.8571, allocations: 7.3 MB / 0.685 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01562/0.8727, allocations: 11.62 MB / 0.6964 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001408/0.8729, allocations: 36 kB / 0.6964 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04617/0.9191, allocations: 16.21 MB / 0.7123 GB, free: 0.8945 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001892/0.9193, allocations: 60 kB / 0.7123 GB, free: 0.8359 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002625/0.9196, allocations: 128 kB / 0.7124 GB, free: 0.7109 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02606/0.9457, allocations: 6.229 MB / 0.7185 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006085/0.9518, allocations: 1.489 MB / 0.72 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04302/0.9949, allocations: 27.63 MB / 0.747 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007327/1.002, allocations: 421.8 kB / 0.7474 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001794/1.004, allocations: 386.2 kB / 0.7477 GB, free: 12.28 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (779): * Single equations (assignments): 774 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006856/1.011, allocations: 2.216 MB / 0.7499 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/1.012, allocations: 398.9 kB / 0.7503 GB, free: 9.652 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3373/1.35, allocations: 11.29 MB / 0.7613 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.339e-05/1.35, allocations: 26.19 kB / 0.7613 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.097e-05/1.35, allocations: 11.03 kB / 0.7613 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.636e-05/1.35, allocations: 10.22 kB / 0.7613 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04512/1.395, allocations: 20.66 MB / 0.7815 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-05/1.395, allocations: 3.906 kB / 0.7815 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002095/1.397, allocations: 391 kB / 0.7819 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02094/1.418, allocations: 5.309 MB / 0.7871 GB, free: 201.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006885/1.419, allocations: 47.61 kB / 0.7871 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02606/1.445, allocations: 22.7 MB / 0.8093 GB, free: 186.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.445, allocations: 11.88 kB / 0.8093 GB, free: 186.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03052/1.476, allocations: 14.6 MB / 0.8236 GB, free: 171.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002931/1.478, allocations: 0.9801 MB / 0.8245 GB, free: 170.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001323/1.48, allocations: 44 kB / 0.8246 GB, free: 170.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003728/1.484, allocations: 183.7 kB / 0.8247 GB, free: 170.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008381/1.484, allocations: 148.1 kB / 0.8249 GB, free: 170.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002566/1.485, allocations: 64 kB / 0.8249 GB, free: 170.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005003/1.49, allocations: 2.729 MB / 0.8276 GB, free: 167.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.81e-07/1.49, allocations: 0 / 0.8276 GB, free: 167.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007933/1.498, allocations: 1.375 MB / 0.8289 GB, free: 166.4 MB / 0.5919 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 (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007576/1.498, allocations: 181.5 kB / 0.8291 GB, free: 166.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01125/1.51, allocations: 8.345 MB / 0.8373 GB, free: 157.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/1.51, allocations: 4 kB / 0.8373 GB, free: 157.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004183/1.514, allocations: 3.213 MB / 0.8404 GB, free: 154.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003815/1.518, allocations: 0.5005 MB / 0.8409 GB, free: 154.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02144/1.539, allocations: 12.28 MB / 0.8529 GB, free: 141.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003686/1.543, allocations: 3.487 MB / 0.8563 GB, free: 138.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00197/1.545, allocations: 315.4 kB / 0.8566 GB, free: 138.1 MB / 0.5919 GB Notification: Performance of SimCode: time 2.265e-06/1.545, allocations: 0 / 0.8566 GB, free: 138.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.1279/1.673, allocations: 110.4 MB / 0.9644 GB, free: 27.55 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches