Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_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.001682/0.001681, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001273/0.001274, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 241.8 MB, free: 15.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2496/0.2496, allocations: 44.16 MB / 336.1 MB, free: 3.055 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 61.03 kB / 407.7 MB, free: 27.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1289, allocations: 60.82 MB / 468.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3643/0.4932, allocations: 46.99 MB / 0.5034 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02564/0.5189, allocations: 10.13 MB / 0.5133 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01263/0.5316, allocations: 210.4 kB / 0.5135 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006717/0.5383, allocations: 2.715 MB / 0.5162 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006512/0.5449, allocations: 1.891 MB / 0.518 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002319/0.5473, allocations: 0.8245 MB / 0.5188 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.5585, allocations: 7.929 MB / 0.5266 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005956/0.5645, allocations: 3.308 MB / 0.5298 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003626/0.5682, allocations: 1.53 MB / 0.5313 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003721/0.5719, allocations: 2.676 MB / 0.5339 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001993/0.5739, allocations: 265.7 kB / 0.5342 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003528/0.5775, allocations: 1.366 MB / 0.5355 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002155/0.5797, allocations: 2.098 MB / 0.5375 GB, free: 292 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00304/0.5827, allocations: 2.34 MB / 0.5398 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008842/0.5916, allocations: 7.566 MB / 0.5472 GB, free: 7.453 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.5916, allocations: 4 kB / 0.5472 GB, free: 7.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.5916, allocations: 0 / 0.5472 GB, free: 7.449 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001644/0.5918, allocations: 0 / 0.5472 GB, free: 7.449 MB / 398.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.01229/0.6041, allocations: 5.511 MB / 0.5526 GB, free: 1.969 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.585e-05/0.6042, allocations: 12.03 kB / 0.5526 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/0.6149, allocations: 2.474 MB / 0.555 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007286/0.6222, allocations: 3.36 MB / 0.5583 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.6224, allocations: 240.6 kB / 0.5585 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008387/0.6232, allocations: 330.2 kB / 0.5589 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01924/0.6425, allocations: 10.87 MB / 0.5695 GB, free: 116 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001464/0.6427, allocations: 59.42 kB / 0.5695 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004597/0.6431, allocations: 159.9 kB / 0.5697 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003074/0.6462, allocations: 2 MB / 0.5716 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02091/0.6671, allocations: 9.443 MB / 0.5809 GB, free: 4.496 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05295/0.7201, allocations: 41.22 MB / 0.6211 GB, free: 10.26 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01088/0.7311, allocations: 4.269 MB / 0.6253 GB, free: 5.848 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003038/0.7341, allocations: 1.935 MB / 0.6272 GB, free: 3.91 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01307/0.7472, allocations: 7.608 MB / 0.6346 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.165e-05/0.7474, allocations: 59.5 kB / 0.6347 GB, free: 11.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 5.33e-06/0.7474, allocations: 0 / 0.6347 GB, free: 11.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1603/0.9076, allocations: 40.92 MB / 0.6746 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.9078, allocations: 209.9 kB / 0.6748 GB, free: 2.715 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007113/0.915, allocations: 4.305 MB / 0.679 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007644/0.9158, allocations: 63.66 kB / 0.6791 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002507/0.9183, allocations: 3.164 MB / 0.6822 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001405/0.9197, allocations: 0.8843 MB / 0.683 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002292/0.922, allocations: 1.35 MB / 0.6844 GB, free: 8.918 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.9221, allocations: 301.1 kB / 0.6846 GB, free: 8.621 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005818/0.928, allocations: 3.628 MB / 0.6882 GB, free: 4.988 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008819/0.9368, allocations: 7.294 MB / 0.6953 GB, free: 11.89 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3072/1.244, allocations: 11.63 MB / 0.7067 GB, free: 198.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001661/1.244, allocations: 36.66 kB / 0.7067 GB, free: 198.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04243/1.287, allocations: 16.21 MB / 0.7225 GB, free: 194.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.00015/1.287, allocations: 60.06 kB / 0.7226 GB, free: 194.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003154/1.287, allocations: 128.2 kB / 0.7227 GB, free: 194.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02303/1.31, allocations: 6.225 MB / 0.7288 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00539/1.316, allocations: 1.486 MB / 0.7302 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03157/1.347, allocations: 26.14 MB / 0.7558 GB, free: 173.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00554/1.353, allocations: 414.9 kB / 0.7562 GB, free: 173.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001184/1.354, allocations: 389.8 kB / 0.7565 GB, free: 172.9 MB / 0.545 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.004013/1.358, allocations: 2.218 MB / 0.7587 GB, free: 170.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00102/1.359, allocations: 390.9 kB / 0.7591 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02648/1.386, allocations: 11.3 MB / 0.7701 GB, free: 159.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.744e-05/1.386, allocations: 24 kB / 0.7701 GB, free: 159.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.497e-05/1.386, allocations: 12 kB / 0.7701 GB, free: 159.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.13e-05/1.386, allocations: 15.89 kB / 0.7702 GB, free: 159.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04256/1.428, allocations: 20.7 MB / 0.7904 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.5e-05/1.428, allocations: 6.062 kB / 0.7904 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00202/1.43, allocations: 387.4 kB / 0.7907 GB, free: 137.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01907/1.45, allocations: 5.305 MB / 0.7959 GB, free: 132.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005885/1.45, allocations: 44 kB / 0.796 GB, free: 132.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02428/1.474, allocations: 21.19 MB / 0.8167 GB, free: 111 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.475, allocations: 15.94 kB / 0.8167 GB, free: 111 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02853/1.503, allocations: 14.6 MB / 0.8309 GB, free: 96.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001527/1.505, allocations: 451.9 kB / 0.8314 GB, free: 95.86 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001632/1.506, allocations: 40 kB / 0.8314 GB, free: 95.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003601/1.51, allocations: 183.6 kB / 0.8316 GB, free: 95.64 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001209/1.511, allocations: 158.1 kB / 0.8317 GB, free: 95.49 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005008/1.512, allocations: 64 kB / 0.8318 GB, free: 95.43 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005518/1.517, allocations: 2.705 MB / 0.8344 GB, free: 92.72 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/1.517, allocations: 0 / 0.8344 GB, free: 92.72 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007921/1.525, allocations: 1.372 MB / 0.8358 GB, free: 91.35 MB / 0.545 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.0008052/1.526, allocations: 189.2 kB / 0.836 GB, free: 91.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0129/1.539, allocations: 8.316 MB / 0.8441 GB, free: 82.86 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/1.539, allocations: 192 / 0.8441 GB, free: 82.86 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00515/1.544, allocations: 3.22 MB / 0.8472 GB, free: 79.63 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0057/1.55, allocations: 482.5 kB / 0.8477 GB, free: 79.16 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02072/1.571, allocations: 14.05 MB / 0.8614 GB, free: 65.05 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003494/1.574, allocations: 3.5 MB / 0.8648 GB, free: 61.52 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004647/1.579, allocations: 1.964 MB / 0.8667 GB, free: 59.55 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001016/1.58, allocations: 263.4 kB / 0.867 GB, free: 59.29 MB / 0.545 GB Notification: Performance of SimCode: time 2.635e-06/1.58, allocations: 0 / 0.867 GB, free: 59.29 MB / 0.545 GB Notification: Performance of Templates: time 0.3558/1.936, allocations: 67.46 MB / 0.9329 GB, free: 185.8 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches