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.001215/0.001215, allocations: 113.3 kB / 18.45 MB, free: 4.602 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.001186/0.001186, allocations: 181.1 kB / 19.38 MB, free: 3.684 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.296/1.296, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.1973/0.1973, allocations: 44.18 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.91 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3319, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01405/0.3459, allocations: 13.41 MB / 0.5326 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.3573, allocations: 4.79 MB / 0.5373 GB, free: 6.199 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003177/0.3605, allocations: 90.59 kB / 0.5374 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007179/0.3678, allocations: 3.737 MB / 0.5411 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00673/0.3745, allocations: 2.191 MB / 0.5432 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002888/0.3774, allocations: 1.072 MB / 0.5442 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01054/0.388, allocations: 6.526 MB / 0.5506 GB, free: 12.17 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006185/0.3942, allocations: 4.514 MB / 0.555 GB, free: 7.586 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004391/0.3986, allocations: 2.021 MB / 0.557 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004901/0.4036, allocations: 2.753 MB / 0.5597 GB, free: 2.797 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001464/0.4051, allocations: 428 kB / 0.5601 GB, free: 2.379 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003461/0.4086, allocations: 1.459 MB / 0.5615 GB, free: 0.918 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002671/0.4113, allocations: 2.494 MB / 0.564 GB, free: 14.42 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003525/0.4148, allocations: 2.781 MB / 0.5667 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009661/0.4245, allocations: 8.812 MB / 0.5753 GB, free: 2.781 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4245, allocations: 4 kB / 0.5753 GB, free: 2.777 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4246, allocations: 4 kB / 0.5753 GB, free: 2.773 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002815/0.4248, allocations: 0 / 0.5753 GB, free: 2.773 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.01509/0.4399, allocations: 6.238 MB / 0.5814 GB, free: 12.46 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.44, allocations: 8.031 kB / 0.5814 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01164/0.4517, allocations: 2.521 MB / 0.5839 GB, free: 9.922 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009177/0.4609, allocations: 4.023 MB / 0.5878 GB, free: 5.844 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000267/0.4612, allocations: 283.7 kB / 0.588 GB, free: 5.566 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001555/0.4628, allocations: 387.6 kB / 0.5884 GB, free: 5.188 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02203/0.4848, allocations: 12 MB / 0.6001 GB, free: 8.395 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001582/0.485, allocations: 59.44 kB / 0.6002 GB, free: 8.336 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005377/0.4855, allocations: 179.8 kB / 0.6004 GB, free: 8.16 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003592/0.4891, allocations: 2.14 MB / 0.6025 GB, free: 6.02 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02106/0.5102, allocations: 10.37 MB / 0.6126 GB, free: 11.63 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05755/0.5678, allocations: 47.27 MB / 0.6588 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01443/0.5823, allocations: 5.819 MB / 0.6644 GB, free: 5.039 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00366/0.586, allocations: 2.978 MB / 0.6673 GB, free: 2.051 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01365/0.5997, allocations: 8.873 MB / 0.676 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.622e-05/0.5998, allocations: 51.88 kB / 0.6761 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=206): time 4.989e-06/0.5998, allocations: 0 / 0.6761 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of matching and sorting (n=262): time 0.1223/0.7221, allocations: 34.93 MB / 0.7102 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/0.7222, allocations: 213.9 kB / 0.7104 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006753/0.729, allocations: 4.773 MB / 0.715 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006208/0.7297, allocations: 65.7 kB / 0.7151 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.2548/0.9845, allocations: 3.533 MB / 0.7186 GB, free: 169.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001666/0.9862, allocations: 0.9743 MB / 0.7195 GB, free: 168.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002656/0.9889, allocations: 1.422 MB / 0.7209 GB, free: 168.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.337e-05/0.9889, allocations: 301.8 kB / 0.7212 GB, free: 168.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005081/0.994, allocations: 3.179 MB / 0.7243 GB, free: 167 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006474/1.001, allocations: 7.038 MB / 0.7312 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01179/1.012, allocations: 10.96 MB / 0.7419 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001682/1.013, allocations: 36.44 kB / 0.7419 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02398/1.037, allocations: 13.75 MB / 0.7553 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.115e-05/1.037, allocations: 69.27 kB / 0.7554 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001336/1.037, allocations: 134.2 kB / 0.7555 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01085/1.048, allocations: 4.381 MB / 0.7598 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005105/1.053, allocations: 1.478 MB / 0.7612 GB, free: 142 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.031/1.084, allocations: 29.04 MB / 0.7896 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005334/1.089, allocations: 407.3 kB / 0.79 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008885/1.09, allocations: 408 kB / 0.7904 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.003562/1.094, allocations: 2.468 MB / 0.7928 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008294/1.095, allocations: 434.4 kB / 0.7932 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01426/1.109, allocations: 8.486 MB / 0.8015 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-05/1.109, allocations: 31.44 kB / 0.8015 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.321e-05/1.109, allocations: 15.98 kB / 0.8015 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.839e-05/1.109, allocations: 7.969 kB / 0.8015 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02565/1.135, allocations: 16.92 MB / 0.8181 GB, free: 83.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.078e-05/1.135, allocations: 4 kB / 0.8181 GB, free: 83.26 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/1.136, allocations: 303.5 kB / 0.8183 GB, free: 82.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009616/1.146, allocations: 3.967 MB / 0.8222 GB, free: 78.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004287/1.146, allocations: 48 kB / 0.8223 GB, free: 78.94 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02904/1.175, allocations: 27.79 MB / 0.8494 GB, free: 50.72 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.175, allocations: 10.38 kB / 0.8494 GB, free: 50.71 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01807/1.193, allocations: 12.45 MB / 0.8616 GB, free: 38.12 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/1.195, allocations: 499.3 kB / 0.8621 GB, free: 37.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008594/1.195, allocations: 44 kB / 0.8621 GB, free: 37.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002229/1.198, allocations: 171.8 kB / 0.8623 GB, free: 37.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007062/1.198, allocations: 194.1 kB / 0.8624 GB, free: 37.21 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001818/1.199, allocations: 68 kB / 0.8625 GB, free: 37.14 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003618/1.202, allocations: 3.009 MB / 0.8654 GB, free: 34.14 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.202, allocations: 0 / 0.8654 GB, free: 34.14 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006203/1.208, allocations: 1.47 MB / 0.8669 GB, free: 32.68 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.0005473/1.209, allocations: 192.2 kB / 0.8671 GB, free: 32.48 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01144/1.22, allocations: 8.459 MB / 0.8753 GB, free: 24.02 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/1.22, allocations: 4 kB / 0.8753 GB, free: 24.01 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005924/1.226, allocations: 3.539 MB / 0.8788 GB, free: 20.44 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004091/1.231, allocations: 0.5802 MB / 0.8794 GB, free: 19.86 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01866/1.249, allocations: 12.92 MB / 0.892 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003895/1.253, allocations: 3.894 MB / 0.8958 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001147/1.254, allocations: 323.4 kB / 0.8961 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of SimCode: time 9.82e-07/1.254, allocations: 0 / 0.8961 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of Templates: time 0.4043/1.659, allocations: 142.6 MB / 1.035 GB, free: 120.3 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/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