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.001187/0.001187, allocations: 113.4 kB / 17.86 MB, free: 5.629 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.001177/0.001177, allocations: 201.9 kB / 18.77 MB, free: 4.715 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.345/1.345, allocations: 222.9 MB / 242.5 MB, free: 13.75 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.2065/0.2065, allocations: 44.18 MB / 336.8 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 68.98 kB / 408.4 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1331, allocations: 60.82 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.289/0.4222, allocations: 62.34 MB / 0.5191 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0349/0.4571, allocations: 12.94 MB / 0.5317 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01658/0.4738, allocations: 281.3 kB / 0.532 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007326/0.4812, allocations: 3.74 MB / 0.5356 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006799/0.488, allocations: 2.049 MB / 0.5376 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002842/0.4909, allocations: 1.008 MB / 0.5386 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.5017, allocations: 9.1 MB / 0.5475 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006853/0.5086, allocations: 4.424 MB / 0.5518 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004451/0.5131, allocations: 1.805 MB / 0.5536 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005378/0.5185, allocations: 2.945 MB / 0.5564 GB, free: 7.645 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001609/0.5202, allocations: 296 kB / 0.5567 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00382/0.524, allocations: 1.4 MB / 0.5581 GB, free: 6.004 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003589/0.5276, allocations: 2.364 MB / 0.5604 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005905/0.5335, allocations: 2.668 MB / 0.563 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009216/0.5428, allocations: 6.928 MB / 0.5698 GB, free: 10.24 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.463e-06/0.5428, allocations: 0 / 0.5698 GB, free: 10.24 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.5428, allocations: 0 / 0.5698 GB, free: 10.24 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003613/0.5432, allocations: 0 / 0.5698 GB, free: 10.24 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01966/0.5629, allocations: 6.238 MB / 0.5759 GB, free: 4.035 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/0.5629, allocations: 12.03 kB / 0.5759 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01193/0.5749, allocations: 2.519 MB / 0.5783 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0108/0.5857, allocations: 3.939 MB / 0.5822 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003268/0.5861, allocations: 286.9 kB / 0.5825 GB, free: 13.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002094/0.5882, allocations: 387.1 kB / 0.5828 GB, free: 12.96 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02681/0.6151, allocations: 12 MB / 0.5946 GB, free: 296 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003005/0.6154, allocations: 59.5 kB / 0.5946 GB, free: 236 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001487/0.6169, allocations: 178.6 kB / 0.5948 GB, free: 96 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003799/0.6207, allocations: 2.145 MB / 0.5969 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02479/0.6455, allocations: 10.38 MB / 0.607 GB, free: 3.574 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06808/0.7137, allocations: 47.48 MB / 0.6534 GB, free: 2.988 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01519/0.7289, allocations: 5.834 MB / 0.6591 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003922/0.7329, allocations: 2.984 MB / 0.662 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01583/0.7487, allocations: 8.871 MB / 0.6706 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.777e-05/0.7489, allocations: 55.81 kB / 0.6707 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=206): time 7.054e-06/0.7489, allocations: 0 / 0.6707 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of matching and sorting (n=262): time 0.3672/1.116, allocations: 34.92 MB / 0.7048 GB, free: 189.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/1.116, allocations: 208 kB / 0.705 GB, free: 189.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008474/1.125, allocations: 4.772 MB / 0.7097 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006728/1.125, allocations: 65.81 kB / 0.7097 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002525/1.128, allocations: 3.545 MB / 0.7132 GB, free: 186.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00126/1.129, allocations: 0.9716 MB / 0.7141 GB, free: 185.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002221/1.131, allocations: 1.425 MB / 0.7155 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.056e-05/1.131, allocations: 305.7 kB / 0.7158 GB, free: 184.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004648/1.136, allocations: 3.17 MB / 0.7189 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006023/1.142, allocations: 7.047 MB / 0.7258 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/1.152, allocations: 10.94 MB / 0.7365 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001412/1.153, allocations: 41.94 kB / 0.7365 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02407/1.177, allocations: 13.74 MB / 0.7499 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000215/1.177, allocations: 64 kB / 0.75 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002123/1.177, allocations: 136 kB / 0.7501 GB, free: 163 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01185/1.189, allocations: 4.397 MB / 0.7544 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004558/1.194, allocations: 1.47 MB / 0.7559 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03112/1.225, allocations: 26.86 MB / 0.7821 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005811/1.231, allocations: 407.3 kB / 0.7825 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001187/1.232, allocations: 411.6 kB / 0.7829 GB, free: 129.1 MB / 0.5294 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.004097/1.236, allocations: 2.469 MB / 0.7853 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001059/1.237, allocations: 434.4 kB / 0.7857 GB, free: 126.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01534/1.252, allocations: 8.487 MB / 0.794 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.223e-05/1.253, allocations: 28 kB / 0.794 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.148e-05/1.253, allocations: 15.98 kB / 0.794 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.035e-05/1.253, allocations: 7.969 kB / 0.794 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03006/1.283, allocations: 17.08 MB / 0.8107 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.911e-05/1.283, allocations: 8 kB / 0.8107 GB, free: 100.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00145/1.284, allocations: 299.5 kB / 0.811 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01052/1.295, allocations: 4.098 MB / 0.815 GB, free: 96 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005245/1.295, allocations: 51.98 kB / 0.8151 GB, free: 95.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02924/1.325, allocations: 25.65 MB / 0.8401 GB, free: 69.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/1.325, allocations: 4 kB / 0.8401 GB, free: 69.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01987/1.344, allocations: 12.42 MB / 0.8523 GB, free: 57.34 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001484/1.346, allocations: 499.2 kB / 0.8527 GB, free: 56.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001518/1.348, allocations: 44 kB / 0.8528 GB, free: 56.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002888/1.35, allocations: 175.8 kB / 0.8529 GB, free: 56.61 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009638/1.351, allocations: 202 kB / 0.8531 GB, free: 56.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003575/1.352, allocations: 68.94 kB / 0.8532 GB, free: 56.34 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004922/1.357, allocations: 3.017 MB / 0.8561 GB, free: 53.33 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.91e-07/1.357, allocations: 0 / 0.8561 GB, free: 53.33 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007224/1.364, allocations: 1.463 MB / 0.8576 GB, free: 51.88 MB / 0.5294 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.0007635/1.365, allocations: 191.6 kB / 0.8578 GB, free: 51.69 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01217/1.377, allocations: 8.427 MB / 0.866 GB, free: 43.24 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/1.377, allocations: 4 kB / 0.866 GB, free: 43.24 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005412/1.382, allocations: 3.562 MB / 0.8695 GB, free: 39.63 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004899/1.387, allocations: 0.5499 MB / 0.87 GB, free: 39.09 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02319/1.411, allocations: 15.43 MB / 0.8851 GB, free: 23.57 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003941/1.415, allocations: 3.895 MB / 0.8889 GB, free: 19.64 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001244/1.416, allocations: 327.4 kB / 0.8892 GB, free: 19.32 MB / 0.5294 GB Notification: Performance of SimCode: time 1.162e-06/1.416, allocations: 0 / 0.8892 GB, free: 19.32 MB / 0.5294 GB Notification: Performance of Templates: time 0.3756/1.791, allocations: 141.8 MB / 1.028 GB, free: 62.89 MB / 0.5294 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