Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001349/0.00135, allocations: 109.5 kB / 17.78 MB, free: 5.289 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.001459/0.00146, allocations: 188 kB / 18.71 MB, free: 4.371 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.331/1.331, 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.1954/0.1954, allocations: 44.2 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 59.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3665, allocations: 60.83 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01339/0.3799, allocations: 13.41 MB / 0.532 GB, free: 9.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01202/0.392, allocations: 4.782 MB / 0.5367 GB, free: 6.199 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003362/0.3954, allocations: 94.31 kB / 0.5367 GB, free: 6.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00716/0.4026, allocations: 3.733 MB / 0.5404 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006519/0.4092, allocations: 2.191 MB / 0.5425 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003138/0.4124, allocations: 1.08 MB / 0.5436 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01107/0.4234, allocations: 6.518 MB / 0.55 GB, free: 12.18 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006574/0.4301, allocations: 4.51 MB / 0.5544 GB, free: 7.602 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004159/0.4343, allocations: 2.025 MB / 0.5563 GB, free: 5.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00456/0.4388, allocations: 2.753 MB / 0.559 GB, free: 2.809 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001728/0.4406, allocations: 428 kB / 0.5594 GB, free: 2.391 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00403/0.4446, allocations: 1.459 MB / 0.5609 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003893/0.4486, allocations: 2.49 MB / 0.5633 GB, free: 14.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006288/0.4549, allocations: 2.789 MB / 0.566 GB, free: 11.63 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01473/0.4696, allocations: 8.809 MB / 0.5746 GB, free: 2.793 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.4697, allocations: 0 / 0.5746 GB, free: 2.793 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4697, allocations: 0 / 0.5746 GB, free: 2.793 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003687/0.4701, allocations: 4 kB / 0.5746 GB, free: 2.789 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.0184/0.4885, allocations: 6.238 MB / 0.5807 GB, free: 12.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.4885, allocations: 12.02 kB / 0.5807 GB, free: 12.46 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01205/0.5006, allocations: 2.521 MB / 0.5832 GB, free: 9.934 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00993/0.5106, allocations: 4.023 MB / 0.5871 GB, free: 5.855 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003105/0.5109, allocations: 287.6 kB / 0.5874 GB, free: 5.574 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001683/0.5126, allocations: 383.6 kB / 0.5878 GB, free: 5.199 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02627/0.5389, allocations: 12.01 MB / 0.5995 GB, free: 8.402 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002571/0.5392, allocations: 55.44 kB / 0.5995 GB, free: 8.348 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001233/0.5404, allocations: 191.8 kB / 0.5997 GB, free: 8.16 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003369/0.5438, allocations: 2.136 MB / 0.6018 GB, free: 6.023 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02244/0.5663, allocations: 10.37 MB / 0.6119 GB, free: 11.64 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06781/0.6341, allocations: 47.27 MB / 0.6581 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01418/0.6484, allocations: 5.816 MB / 0.6638 GB, free: 5.051 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003777/0.6522, allocations: 2.978 MB / 0.6667 GB, free: 2.062 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01461/0.6668, allocations: 8.873 MB / 0.6753 GB, free: 9.023 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.247e-05/0.6669, allocations: 55.88 kB / 0.6754 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=206): time 4.318e-06/0.6669, allocations: 0 / 0.6754 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of matching and sorting (n=262): time 0.1234/0.7903, allocations: 34.94 MB / 0.7095 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.7904, allocations: 209.9 kB / 0.7097 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00884/0.7993, allocations: 4.78 MB / 0.7144 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006091/0.7999, allocations: 61.7 kB / 0.7144 GB, free: 0.8555 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.3017/1.102, allocations: 3.537 MB / 0.7179 GB, free: 169.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001349/1.103, allocations: 0.9738 MB / 0.7188 GB, free: 168.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002239/1.105, allocations: 1.423 MB / 0.7202 GB, free: 168.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.086e-05/1.105, allocations: 301.8 kB / 0.7205 GB, free: 168.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004975/1.11, allocations: 3.175 MB / 0.7236 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006713/1.117, allocations: 7.04 MB / 0.7305 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/1.129, allocations: 10.95 MB / 0.7412 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001668/1.13, allocations: 38.16 kB / 0.7412 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02483/1.154, allocations: 13.74 MB / 0.7547 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/1.155, allocations: 65.31 kB / 0.7547 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001339/1.155, allocations: 133.3 kB / 0.7548 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01144/1.166, allocations: 4.394 MB / 0.7591 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004588/1.171, allocations: 1.474 MB / 0.7606 GB, free: 142 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03305/1.204, allocations: 29.02 MB / 0.7889 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005937/1.21, allocations: 415.4 kB / 0.7893 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/1.211, allocations: 411.8 kB / 0.7897 GB, free: 111.8 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (798): * Single equations (assignments): 792 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.003715/1.215, allocations: 2.465 MB / 0.7921 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007941/1.216, allocations: 434.4 kB / 0.7925 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01446/1.23, allocations: 8.49 MB / 0.8008 GB, free: 100.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.13e-05/1.23, allocations: 28 kB / 0.8008 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.349e-05/1.23, allocations: 12.88 kB / 0.8009 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.484e-05/1.23, allocations: 11.95 kB / 0.8009 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02643/1.257, allocations: 16.92 MB / 0.8174 GB, free: 83.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.433e-05/1.257, allocations: 7.938 kB / 0.8174 GB, free: 83.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/1.258, allocations: 295.6 kB / 0.8177 GB, free: 82.98 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009557/1.268, allocations: 3.971 MB / 0.8216 GB, free: 79 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004264/1.268, allocations: 51.98 kB / 0.8216 GB, free: 78.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02879/1.297, allocations: 27.78 MB / 0.8487 GB, free: 50.74 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.297, allocations: 7.938 kB / 0.8487 GB, free: 50.73 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01718/1.314, allocations: 12.45 MB / 0.8609 GB, free: 38.14 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/1.316, allocations: 491.4 kB / 0.8614 GB, free: 37.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000748/1.317, allocations: 51.98 kB / 0.8614 GB, free: 37.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002127/1.319, allocations: 163.8 kB / 0.8616 GB, free: 37.42 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007256/1.32, allocations: 198.1 kB / 0.8618 GB, free: 37.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001862/1.32, allocations: 72 kB / 0.8618 GB, free: 37.16 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003648/1.323, allocations: 3.009 MB / 0.8648 GB, free: 34.15 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.323, allocations: 0 / 0.8648 GB, free: 34.15 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006286/1.33, allocations: 1.47 MB / 0.8662 GB, free: 32.69 MB / 0.5606 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005119/1.33, allocations: 185.9 kB / 0.8664 GB, free: 32.51 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01111/1.341, allocations: 8.471 MB / 0.8747 GB, free: 24.03 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/1.341, allocations: 4 kB / 0.8747 GB, free: 24.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004762/1.346, allocations: 3.538 MB / 0.8781 GB, free: 20.45 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003413/1.35, allocations: 0.5765 MB / 0.8787 GB, free: 19.88 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01643/1.366, allocations: 12.43 MB / 0.8908 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002982/1.369, allocations: 3.921 MB / 0.8947 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003545/1.373, allocations: 1.999 MB / 0.8966 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006404/1.373, allocations: 279.4 kB / 0.8969 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of SimCode: time 8.01e-07/1.373, allocations: 0 / 0.8969 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of Templates: time 0.394/1.767, allocations: 69.85 MB / 0.9651 GB, free: 193.5 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches