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.001404/0.001404, allocations: 103.2 kB / 18.44 MB, free: 4.652 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.001219/0.001219, allocations: 189.2 kB / 19.38 MB, free: 3.727 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.379/1.379, allocations: 222.9 MB / 243.1 MB, free: 15.13 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.2267/0.2267, allocations: 44.19 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 67.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3744, allocations: 60.82 MB / 0.5196 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01601/0.3905, allocations: 15.05 MB / 0.5342 GB, free: 8.684 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01232/0.4029, allocations: 4.822 MB / 0.539 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003852/0.4068, allocations: 92.94 kB / 0.539 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006805/0.4136, allocations: 3.156 MB / 0.5421 GB, free: 2.758 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007967/0.4216, allocations: 2.548 MB / 0.5446 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002819/0.4245, allocations: 0.9922 MB / 0.5456 GB, free: 304 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01163/0.4361, allocations: 6.964 MB / 0.5524 GB, free: 10.38 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007067/0.4432, allocations: 4.379 MB / 0.5567 GB, free: 5.926 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005092/0.4484, allocations: 2.227 MB / 0.5588 GB, free: 3.691 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005542/0.4539, allocations: 3.252 MB / 0.562 GB, free: 440 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002247/0.4562, allocations: 488 kB / 0.5625 GB, free: 15.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004903/0.4612, allocations: 1.51 MB / 0.564 GB, free: 14.44 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004491/0.4657, allocations: 2.887 MB / 0.5668 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006245/0.472, allocations: 3.254 MB / 0.5699 GB, free: 8.273 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01437/0.4863, allocations: 10.45 MB / 0.5802 GB, free: 13.79 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.4864, allocations: 0 / 0.5802 GB, free: 13.79 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4864, allocations: 0 / 0.5802 GB, free: 13.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004112/0.4868, allocations: 0 / 0.5802 GB, free: 13.79 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.02005/0.5069, allocations: 7.318 MB / 0.5873 GB, free: 6.387 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.5069, allocations: 12.03 kB / 0.5873 GB, free: 6.375 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01719/0.5241, allocations: 3.923 MB / 0.5911 GB, free: 2.438 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01166/0.5359, allocations: 4.192 MB / 0.5952 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00042/0.5363, allocations: 316.4 kB / 0.5955 GB, free: 13.86 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002684/0.539, allocations: 427.5 kB / 0.5959 GB, free: 13.45 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03223/0.5713, allocations: 15.74 MB / 0.6113 GB, free: 12.78 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002729/0.5716, allocations: 55.52 kB / 0.6114 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001834/0.5734, allocations: 203.8 kB / 0.6116 GB, free: 12.52 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005587/0.579, allocations: 3.216 MB / 0.6147 GB, free: 9.305 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02881/0.6079, allocations: 14.17 MB / 0.6285 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08225/0.6901, allocations: 57.5 MB / 0.6847 GB, free: 24 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01413/0.7043, allocations: 6.582 MB / 0.6911 GB, free: 9.184 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005586/0.71, allocations: 3.747 MB / 0.6948 GB, free: 5.43 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02809/0.7381, allocations: 14.78 MB / 0.7092 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.391e-05/0.7382, allocations: 68.44 kB / 0.7093 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 7.915e-06/0.7382, allocations: 0 / 0.7093 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.4568/1.195, allocations: 42.49 MB / 0.7508 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.888e-05/1.195, allocations: 210 kB / 0.751 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006858/1.202, allocations: 5.475 MB / 0.7563 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008346/1.203, allocations: 69.7 kB / 0.7564 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002193/1.205, allocations: 4.346 MB / 0.7606 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001657/1.207, allocations: 1.273 MB / 0.7619 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002663/1.209, allocations: 1.86 MB / 0.7637 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.976e-05/1.21, allocations: 301.1 kB / 0.764 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005695/1.215, allocations: 4.835 MB / 0.7687 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00839/1.224, allocations: 9.826 MB / 0.7783 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0163/1.24, allocations: 15.62 MB / 0.7935 GB, free: 106.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001598/1.24, allocations: 48 kB / 0.7936 GB, free: 106.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04294/1.283, allocations: 19.62 MB / 0.8128 GB, free: 86.47 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/1.283, allocations: 76 kB / 0.8128 GB, free: 86.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002063/1.284, allocations: 178.2 kB / 0.813 GB, free: 86.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02213/1.306, allocations: 5.937 MB / 0.8188 GB, free: 80.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007263/1.313, allocations: 2.137 MB / 0.8209 GB, free: 78.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02838/1.341, allocations: 26.16 MB / 0.8464 GB, free: 51.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008282/1.35, allocations: 0.5618 MB / 0.847 GB, free: 51.13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002047/1.352, allocations: 0.5117 MB / 0.8475 GB, free: 50.62 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.005928/1.358, allocations: 3.105 MB / 0.8505 GB, free: 47.51 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/1.359, allocations: 0.4937 MB / 0.851 GB, free: 47.01 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02911/1.388, allocations: 13 MB / 0.8637 GB, free: 33.93 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.011e-05/1.388, allocations: 55.91 kB / 0.8637 GB, free: 33.88 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.957e-05/1.388, allocations: 8 kB / 0.8637 GB, free: 33.88 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.051e-05/1.388, allocations: 15.94 kB / 0.8638 GB, free: 33.86 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05464/1.443, allocations: 24.63 MB / 0.8878 GB, free: 8.746 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.725e-05/1.443, allocations: 4.594 kB / 0.8878 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003279/1.446, allocations: 0.5851 MB / 0.8884 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01919/1.466, allocations: 4.973 MB / 0.8932 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009412/1.467, allocations: 52 kB / 0.8933 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02973/1.496, allocations: 21.34 MB / 0.9141 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/1.496, allocations: 8.062 kB / 0.9141 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05875/1.555, allocations: 17.58 MB / 0.9313 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002566/1.558, allocations: 0.5336 MB / 0.9318 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002267/1.56, allocations: 63.3 kB / 0.9319 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005714/1.566, allocations: 267.6 kB / 0.9322 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001602/1.567, allocations: 185.6 kB / 0.9323 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000864/1.568, allocations: 80.47 kB / 0.9324 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.007853/1.576, allocations: 3.406 MB / 0.9357 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8.52e-07/1.576, allocations: 4 kB / 0.9357 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01149/1.588, allocations: 1.76 MB / 0.9375 GB, free: 5.473 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.001258/1.589, allocations: 207.8 kB / 0.9377 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.3169/1.906, allocations: 11.04 MB / 0.9484 GB, free: 203.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.499e-05/1.906, allocations: 4.125 kB / 0.9484 GB, free: 203.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00731/1.913, allocations: 4.14 MB / 0.9525 GB, free: 201.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00477/1.918, allocations: 0.6192 MB / 0.9531 GB, free: 201.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02752/1.946, allocations: 16.68 MB / 0.9694 GB, free: 194.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005326/1.951, allocations: 4.6 MB / 0.9739 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002058/1.953, allocations: 416.8 kB / 0.9743 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of SimCode: time 1.112e-06/1.953, allocations: 0 / 0.9743 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of Templates: time 0.1853/2.139, allocations: 151.8 MB / 1.122 GB, free: 43.64 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins1/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