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.001136/0.001136, allocations: 105.9 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.001218/0.001219, 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.366/1.366, allocations: 222.9 MB / 241.8 MB, free: 13.86 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.2235/0.2235, allocations: 44.16 MB / 336.1 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 64.25 kB / 407.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1376, allocations: 60.82 MB / 468.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.323/0.4606, allocations: 53.43 MB / 0.5097 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02944/0.4901, allocations: 11.22 MB / 0.5207 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01288/0.503, allocations: 234 kB / 0.5209 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0066/0.5096, allocations: 3.119 MB / 0.5239 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008963/0.5187, allocations: 2.415 MB / 0.5263 GB, free: 6.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002541/0.5212, allocations: 0.9055 MB / 0.5272 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01405/0.5353, allocations: 9.907 MB / 0.5369 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005945/0.5413, allocations: 4.287 MB / 0.541 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004758/0.5461, allocations: 1.97 MB / 0.543 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006026/0.5521, allocations: 3.435 MB / 0.5463 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00187/0.554, allocations: 332 kB / 0.5466 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003978/0.558, allocations: 1.435 MB / 0.548 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003195/0.5612, allocations: 2.758 MB / 0.5507 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004182/0.5654, allocations: 3.12 MB / 0.5538 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01122/0.5767, allocations: 9.947 MB / 0.5635 GB, free: 10.8 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.5767, allocations: 0 / 0.5635 GB, free: 10.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5767, allocations: 0 / 0.5635 GB, free: 10.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004069/0.5771, allocations: 0 / 0.5635 GB, free: 10.8 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02043/0.5976, allocations: 7.322 MB / 0.5706 GB, free: 3.559 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.5976, allocations: 15.97 kB / 0.5707 GB, free: 3.543 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01629/0.6139, allocations: 3.922 MB / 0.5745 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/0.6242, allocations: 4.123 MB / 0.5785 GB, free: 11.47 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002859/0.6245, allocations: 316.6 kB / 0.5788 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001739/0.6262, allocations: 430.9 kB / 0.5792 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02906/0.6553, allocations: 15.74 MB / 0.5946 GB, free: 10.36 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001661/0.6555, allocations: 63.36 kB / 0.5947 GB, free: 10.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007192/0.6562, allocations: 205.8 kB / 0.5949 GB, free: 10.16 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005271/0.6615, allocations: 3.216 MB / 0.598 GB, free: 6.957 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03077/0.6923, allocations: 14.16 MB / 0.6118 GB, free: 8.77 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0794/0.7718, allocations: 57.77 MB / 0.6682 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01415/0.7859, allocations: 6.599 MB / 0.6747 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005442/0.7914, allocations: 3.752 MB / 0.6784 GB, free: 3.133 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02289/0.8143, allocations: 14.79 MB / 0.6928 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.901e-05/0.8144, allocations: 56.56 kB / 0.6928 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 5.019e-06/0.8145, allocations: 4 kB / 0.6929 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.4246/1.239, allocations: 42.48 MB / 0.7343 GB, free: 198.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/1.239, allocations: 213.1 kB / 0.7345 GB, free: 197.8 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008735/1.248, allocations: 5.473 MB / 0.7399 GB, free: 195.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001349/1.249, allocations: 73.23 kB / 0.74 GB, free: 195.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002617/1.252, allocations: 4.343 MB / 0.7442 GB, free: 192.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002045/1.254, allocations: 1.27 MB / 0.7454 GB, free: 191.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002958/1.257, allocations: 1.855 MB / 0.7473 GB, free: 190.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.39e-05/1.257, allocations: 305.1 kB / 0.7475 GB, free: 190.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006132/1.263, allocations: 4.833 MB / 0.7523 GB, free: 188.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008314/1.272, allocations: 9.834 MB / 0.7619 GB, free: 178.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01731/1.289, allocations: 15.62 MB / 0.7771 GB, free: 160 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001731/1.289, allocations: 48 kB / 0.7772 GB, free: 160 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04224/1.331, allocations: 19.62 MB / 0.7963 GB, free: 140.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/1.332, allocations: 76 kB / 0.7964 GB, free: 140.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001877/1.332, allocations: 176 kB / 0.7966 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02078/1.352, allocations: 5.942 MB / 0.8024 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007241/1.36, allocations: 2.121 MB / 0.8044 GB, free: 132 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02749/1.387, allocations: 24.78 MB / 0.8286 GB, free: 106.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008342/1.396, allocations: 0.5539 MB / 0.8292 GB, free: 106.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00163/1.397, allocations: 0.5156 MB / 0.8297 GB, free: 105.9 MB / 0.545 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.005237/1.403, allocations: 3.093 MB / 0.8327 GB, free: 102.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/1.404, allocations: 0.4935 MB / 0.8332 GB, free: 102.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02783/1.432, allocations: 13.01 MB / 0.8459 GB, free: 89.18 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001152/1.432, allocations: 63.78 kB / 0.846 GB, free: 89.12 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.107e-05/1.432, allocations: 8 kB / 0.846 GB, free: 89.11 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-05/1.432, allocations: 11.95 kB / 0.846 GB, free: 89.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04449/1.476, allocations: 24.69 MB / 0.8701 GB, free: 63.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.218e-05/1.477, allocations: 4 kB / 0.8701 GB, free: 63.94 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002869/1.479, allocations: 0.5895 MB / 0.8707 GB, free: 63.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01797/1.497, allocations: 4.97 MB / 0.8755 GB, free: 58.37 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009452/1.498, allocations: 56 kB / 0.8756 GB, free: 58.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02167/1.52, allocations: 19.96 MB / 0.8951 GB, free: 38.09 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/1.52, allocations: 7.938 kB / 0.8951 GB, free: 38.08 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3284/1.849, allocations: 17.58 MB / 0.9122 GB, free: 186.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002134/1.851, allocations: 0.532 MB / 0.9128 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002394/1.853, allocations: 57.67 kB / 0.9128 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004065/1.857, allocations: 262 kB / 0.9131 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001228/1.858, allocations: 194 kB / 0.9133 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003673/1.859, allocations: 90.33 kB / 0.9133 GB, free: 186.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007921/1.867, allocations: 3.398 MB / 0.9167 GB, free: 186.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.51e-07/1.867, allocations: 1.219 kB / 0.9167 GB, free: 186.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01133/1.878, allocations: 1.766 MB / 0.9184 GB, free: 186.5 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 (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.001145/1.879, allocations: 206.7 kB / 0.9186 GB, free: 186.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02124/1.901, allocations: 11 MB / 0.9293 GB, free: 183.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/1.901, allocations: 5.938 kB / 0.9293 GB, free: 183.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006239/1.907, allocations: 4.13 MB / 0.9334 GB, free: 181.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005306/1.912, allocations: 0.5969 MB / 0.9339 GB, free: 181.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03239/1.945, allocations: 19.27 MB / 0.9528 GB, free: 171.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006879/1.952, allocations: 4.623 MB / 0.9573 GB, free: 169.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00718/1.959, allocations: 2.979 MB / 0.9602 GB, free: 168.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00164/1.96, allocations: 348 kB / 0.9605 GB, free: 167.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.583e-06/1.96, allocations: 0 / 0.9605 GB, free: 167.8 MB / 0.545 GB Notification: Performance of Templates: time 0.1161/2.077, allocations: 78.33 MB / 1.037 GB, free: 91.99 MB / 0.545 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