Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001433/0.001434, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.293/1.293, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.1997/0.1997, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 71.88 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3777, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01659/0.3944, allocations: 15.05 MB / 0.5336 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.4063, allocations: 4.815 MB / 0.5383 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003258/0.4096, allocations: 92.5 kB / 0.5384 GB, free: 4.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005983/0.4156, allocations: 3.16 MB / 0.5415 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007775/0.4235, allocations: 2.552 MB / 0.544 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003051/0.4266, allocations: 0.9841 MB / 0.5449 GB, free: 324 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01165/0.4383, allocations: 6.975 MB / 0.5517 GB, free: 10.35 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005637/0.4439, allocations: 4.375 MB / 0.556 GB, free: 5.902 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003932/0.4479, allocations: 2.231 MB / 0.5582 GB, free: 3.664 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004241/0.4521, allocations: 3.256 MB / 0.5614 GB, free: 408 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008887/0.453, allocations: 492 kB / 0.5618 GB, free: 15.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002654/0.4557, allocations: 1.502 MB / 0.5633 GB, free: 14.41 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002485/0.4582, allocations: 2.879 MB / 0.5661 GB, free: 11.53 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003358/0.4616, allocations: 3.262 MB / 0.5693 GB, free: 8.246 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01057/0.4721, allocations: 10.44 MB / 0.5795 GB, free: 13.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.4722, allocations: 0 / 0.5795 GB, free: 13.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4722, allocations: 0 / 0.5795 GB, free: 13.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002285/0.4724, allocations: 0 / 0.5795 GB, free: 13.77 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01722/0.4897, allocations: 7.318 MB / 0.5866 GB, free: 6.363 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.4897, allocations: 12.03 kB / 0.5866 GB, free: 6.352 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01606/0.5058, allocations: 3.923 MB / 0.5905 GB, free: 2.414 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01083/0.5167, allocations: 4.192 MB / 0.5946 GB, free: 14.15 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/0.517, allocations: 316.4 kB / 0.5949 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001542/0.5186, allocations: 435.4 kB / 0.5953 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02451/0.5431, allocations: 15.74 MB / 0.6107 GB, free: 12.75 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001293/0.5433, allocations: 55.53 kB / 0.6107 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005589/0.5438, allocations: 203.8 kB / 0.6109 GB, free: 12.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004868/0.5487, allocations: 3.22 MB / 0.614 GB, free: 9.273 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02746/0.5762, allocations: 14.17 MB / 0.6279 GB, free: 11.08 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07392/0.6501, allocations: 57.49 MB / 0.684 GB, free: 16 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01369/0.6639, allocations: 6.592 MB / 0.6905 GB, free: 9.172 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004963/0.6689, allocations: 3.75 MB / 0.6941 GB, free: 5.414 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02102/0.6899, allocations: 14.78 MB / 0.7086 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.85e-05/0.69, allocations: 68.44 kB / 0.7086 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 5.58e-06/0.69, allocations: 0 / 0.7086 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.417/1.107, allocations: 42.49 MB / 0.7501 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.094e-05/1.107, allocations: 210 kB / 0.7503 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006812/1.114, allocations: 5.471 MB / 0.7557 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001088/1.115, allocations: 73.7 kB / 0.7557 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002058/1.117, allocations: 4.348 MB / 0.76 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001664/1.119, allocations: 1.269 MB / 0.7612 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002434/1.121, allocations: 1.856 MB / 0.763 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.945e-05/1.121, allocations: 301.1 kB / 0.7633 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005202/1.127, allocations: 4.839 MB / 0.768 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007347/1.134, allocations: 9.826 MB / 0.7776 GB, free: 124.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01567/1.15, allocations: 15.63 MB / 0.7929 GB, free: 106.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001398/1.15, allocations: 48 kB / 0.7929 GB, free: 106.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.0417/1.191, allocations: 19.6 MB / 0.8121 GB, free: 86.49 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001087/1.192, allocations: 84.06 kB / 0.8122 GB, free: 86.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001575/1.192, allocations: 174.2 kB / 0.8123 GB, free: 86.24 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02157/1.213, allocations: 5.948 MB / 0.8181 GB, free: 80.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007756/1.221, allocations: 2.133 MB / 0.8202 GB, free: 78.15 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0275/1.249, allocations: 26.15 MB / 0.8458 GB, free: 51.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0078/1.257, allocations: 0.5539 MB / 0.8463 GB, free: 51.15 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001478/1.258, allocations: 0.5111 MB / 0.8468 GB, free: 50.64 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1099): * Single equations (assignments): 1091 * Array equations: 6 * 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 {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005155/1.263, allocations: 3.106 MB / 0.8498 GB, free: 47.52 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001256/1.264, allocations: 497.5 kB / 0.8503 GB, free: 47.03 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02897/1.293, allocations: 13.01 MB / 0.863 GB, free: 33.95 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000114/1.294, allocations: 52 kB / 0.8631 GB, free: 33.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-05/1.294, allocations: 8 kB / 0.8631 GB, free: 33.89 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.195e-05/1.294, allocations: 23.94 kB / 0.8631 GB, free: 33.87 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04817/1.342, allocations: 24.62 MB / 0.8871 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.813e-05/1.342, allocations: 12 kB / 0.8872 GB, free: 8.758 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003033/1.345, allocations: 0.5811 MB / 0.8877 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01865/1.364, allocations: 4.973 MB / 0.8926 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008079/1.365, allocations: 60 kB / 0.8926 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02739/1.392, allocations: 21.34 MB / 0.9135 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/1.392, allocations: 4 kB / 0.9135 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03752/1.43, allocations: 17.59 MB / 0.9307 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/1.431, allocations: 0.5297 MB / 0.9312 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/1.432, allocations: 55.94 kB / 0.9312 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00301/1.435, allocations: 263.6 kB / 0.9315 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007858/1.436, allocations: 197.4 kB / 0.9317 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002857/1.437, allocations: 84.47 kB / 0.9317 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.005765/1.442, allocations: 3.398 MB / 0.9351 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/1.442, allocations: 0 / 0.9351 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008303/1.451, allocations: 1.764 MB / 0.9368 GB, free: 5.484 MB / 0.6075 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 (257): * Single equations (assignments): 249 * Array equations: 6 * 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 {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007977/1.451, allocations: 204 kB / 0.937 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.2777/1.729, allocations: 11.04 MB / 0.9478 GB, free: 203.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/1.729, allocations: 1.125 kB / 0.9478 GB, free: 203.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.005908/1.735, allocations: 4.135 MB / 0.9518 GB, free: 202 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003965/1.739, allocations: 0.6229 MB / 0.9524 GB, free: 201.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0247/1.764, allocations: 16.07 MB / 0.9681 GB, free: 195 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004501/1.768, allocations: 4.615 MB / 0.9726 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.005465/1.774, allocations: 2.98 MB / 0.9755 GB, free: 192.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/1.775, allocations: 350.5 kB / 0.9759 GB, free: 192 MB / 0.6075 GB Notification: Performance of SimCode: time 9.91e-07/1.775, allocations: 0 / 0.9759 GB, free: 192 MB / 0.6075 GB Notification: Performance of Templates: time 0.1058/1.881, allocations: 77.55 MB / 1.052 GB, free: 115.7 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches