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.001126/0.001126, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.001091/0.001091, allocations: 183 kB / 18.72 MB, free: 4.332 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.38/1.38, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2022/0.2022, allocations: 44.2 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3684/0.3695, allocations: 60.83 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01699/0.3866, allocations: 15.05 MB / 0.5336 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01478/0.4014, allocations: 4.815 MB / 0.5383 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003796/0.4053, allocations: 96.12 kB / 0.5384 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006712/0.412, allocations: 3.149 MB / 0.5415 GB, free: 2.781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008364/0.4204, allocations: 2.555 MB / 0.544 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002989/0.4234, allocations: 0.9922 MB / 0.5449 GB, free: 320 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01382/0.4373, allocations: 6.964 MB / 0.5517 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008209/0.4456, allocations: 4.38 MB / 0.556 GB, free: 5.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00581/0.4514, allocations: 2.223 MB / 0.5582 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005911/0.4574, allocations: 3.252 MB / 0.5613 GB, free: 428 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002836/0.4602, allocations: 484 kB / 0.5618 GB, free: 15.94 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005004/0.4653, allocations: 1.502 MB / 0.5633 GB, free: 14.44 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004233/0.4696, allocations: 2.86 MB / 0.5661 GB, free: 11.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005907/0.4755, allocations: 3.258 MB / 0.5693 GB, free: 8.297 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01406/0.4896, allocations: 10.49 MB / 0.5795 GB, free: 13.76 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.4896, allocations: 0 / 0.5795 GB, free: 13.76 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4896, allocations: 0 / 0.5795 GB, free: 13.76 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004158/0.4901, allocations: 0 / 0.5795 GB, free: 13.76 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.01986/0.5099, allocations: 7.502 MB / 0.5868 GB, free: 6.164 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.51, allocations: 12.03 kB / 0.5868 GB, free: 6.152 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01692/0.5269, allocations: 3.963 MB / 0.5907 GB, free: 2.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01117/0.5382, allocations: 4.198 MB / 0.5948 GB, free: 13.92 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000296/0.5385, allocations: 320.4 kB / 0.5951 GB, free: 13.6 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002479/0.541, allocations: 435.5 kB / 0.5955 GB, free: 13.18 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02846/0.5695, allocations: 15.74 MB / 0.6109 GB, free: 12.51 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001711/0.5697, allocations: 59.5 kB / 0.611 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000631/0.5704, allocations: 203.8 kB / 0.6111 GB, free: 12.25 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004985/0.5753, allocations: 3.22 MB / 0.6143 GB, free: 9.027 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02851/0.6039, allocations: 14.16 MB / 0.6281 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08008/0.684, allocations: 57.59 MB / 0.6844 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01448/0.6986, allocations: 6.605 MB / 0.6908 GB, free: 8.836 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005177/0.7038, allocations: 3.739 MB / 0.6945 GB, free: 5.086 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02352/0.7273, allocations: 14.81 MB / 0.7089 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.186e-05/0.7274, allocations: 64.44 kB / 0.709 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 6.231e-06/0.7274, allocations: 4 kB / 0.709 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.4464/1.174, allocations: 42.81 MB / 0.7508 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.747e-05/1.174, allocations: 221.9 kB / 0.751 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007256/1.181, allocations: 5.479 MB / 0.7564 GB, free: 148.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009552/1.182, allocations: 73.7 kB / 0.7564 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002277/1.185, allocations: 4.524 MB / 0.7608 GB, free: 144.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001935/1.187, allocations: 1.321 MB / 0.7621 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002528/1.189, allocations: 1.873 MB / 0.764 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.399e-05/1.189, allocations: 305.1 kB / 0.7643 GB, free: 141.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005283/1.194, allocations: 4.839 MB / 0.769 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007219/1.202, allocations: 9.822 MB / 0.7786 GB, free: 124 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.015/1.217, allocations: 15.62 MB / 0.7938 GB, free: 105.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000147/1.217, allocations: 48 kB / 0.7939 GB, free: 105.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.0415/1.258, allocations: 19.64 MB / 0.8131 GB, free: 86.16 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000106/1.259, allocations: 80 kB / 0.8131 GB, free: 86.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001851/1.259, allocations: 172 kB / 0.8133 GB, free: 85.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02227/1.281, allocations: 5.947 MB / 0.8191 GB, free: 79.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007472/1.289, allocations: 2.129 MB / 0.8212 GB, free: 77.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02808/1.317, allocations: 26.16 MB / 0.8467 GB, free: 51.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009335/1.326, allocations: 0.5617 MB / 0.8473 GB, free: 50.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002273/1.328, allocations: 0.5117 MB / 0.8478 GB, free: 50.3 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.006983/1.335, allocations: 3.095 MB / 0.8508 GB, free: 47.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001517/1.337, allocations: 0.5238 MB / 0.8513 GB, free: 46.67 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02912/1.366, allocations: 13.01 MB / 0.864 GB, free: 33.59 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001016/1.366, allocations: 55.98 kB / 0.8641 GB, free: 33.54 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-05/1.366, allocations: 8 kB / 0.8641 GB, free: 33.53 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-05/1.366, allocations: 19.94 kB / 0.8641 GB, free: 33.51 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05266/1.419, allocations: 24.62 MB / 0.8881 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.879e-05/1.419, allocations: 12 kB / 0.8882 GB, free: 8.391 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003136/1.422, allocations: 0.5856 MB / 0.8887 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01874/1.441, allocations: 4.973 MB / 0.8936 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007207/1.442, allocations: 56 kB / 0.8936 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02828/1.47, allocations: 21.35 MB / 0.9145 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/1.47, allocations: 8 kB / 0.9145 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03811/1.508, allocations: 17.61 MB / 0.9317 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001633/1.51, allocations: 0.5561 MB / 0.9322 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001613/1.512, allocations: 55.94 kB / 0.9323 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003765/1.515, allocations: 259.6 kB / 0.9325 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009758/1.516, allocations: 197.7 kB / 0.9327 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004724/1.517, allocations: 87.44 kB / 0.9328 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006175/1.523, allocations: 3.394 MB / 0.9361 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.51e-07/1.523, allocations: 0 / 0.9361 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008872/1.532, allocations: 1.766 MB / 0.9378 GB, free: 5.059 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.0011/1.533, allocations: 212.9 kB / 0.938 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.3225/1.856, allocations: 11.05 MB / 0.9488 GB, free: 202.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/1.856, allocations: 1.219 kB / 0.9488 GB, free: 202.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.007532/1.863, allocations: 4.134 MB / 0.9529 GB, free: 201.2 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005777/1.869, allocations: 0.6162 MB / 0.9535 GB, free: 200.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02999/1.899, allocations: 16.28 MB / 0.9694 GB, free: 194 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005894/1.905, allocations: 4.628 MB / 0.9739 GB, free: 192.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006921/1.912, allocations: 2.981 MB / 0.9768 GB, free: 191.3 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001611/1.914, allocations: 349.1 kB / 0.9771 GB, free: 191 MB / 0.6075 GB Notification: Performance of SimCode: time 9.61e-07/1.914, allocations: 4 kB / 0.9771 GB, free: 191 MB / 0.6075 GB Notification: Performance of Templates: time 0.1136/2.027, allocations: 77.12 MB / 1.052 GB, free: 115 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