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.001297/0.001297, allocations: 110.1 kB / 17.33 MB, free: 5.988 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.001295/0.001295, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.388/1.388, allocations: 222.9 MB / 241.9 MB, free: 15.37 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.2168/0.2168, allocations: 44.18 MB / 336.2 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.59 kB / 407.9 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.135, allocations: 60.83 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.3217/0.4568, allocations: 62.34 MB / 0.5186 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.034/0.4908, allocations: 12.84 MB / 0.5311 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01862/0.5095, allocations: 277 kB / 0.5314 GB, free: 6.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007264/0.5169, allocations: 3.606 MB / 0.5349 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008438/0.5254, allocations: 2.04 MB / 0.5369 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002963/0.5283, allocations: 1.014 MB / 0.5379 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01137/0.5397, allocations: 6.886 MB / 0.5446 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007471/0.5473, allocations: 4.752 MB / 0.5493 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005208/0.5525, allocations: 2.077 MB / 0.5513 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005326/0.5579, allocations: 3.064 MB / 0.5543 GB, free: 9.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001483/0.5594, allocations: 428 kB / 0.5547 GB, free: 9.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003703/0.5631, allocations: 1.469 MB / 0.5561 GB, free: 7.602 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002925/0.5661, allocations: 2.489 MB / 0.5586 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004387/0.5705, allocations: 2.817 MB / 0.5613 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01081/0.5813, allocations: 8.619 MB / 0.5697 GB, free: 9.875 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.5814, allocations: 0 / 0.5697 GB, free: 9.875 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.5814, allocations: 0 / 0.5697 GB, free: 9.875 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002938/0.5817, allocations: 0 / 0.5697 GB, free: 9.875 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.01628/0.598, allocations: 6.246 MB / 0.5758 GB, free: 3.668 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.021e-05/0.598, allocations: 8.031 kB / 0.5758 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01147/0.6095, allocations: 2.517 MB / 0.5783 GB, free: 1.133 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01122/0.6208, allocations: 3.937 MB / 0.5821 GB, free: 13.19 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/0.6211, allocations: 284.2 kB / 0.5824 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001609/0.6227, allocations: 392.2 kB / 0.5828 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02292/0.6457, allocations: 12 MB / 0.5945 GB, free: 15.93 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001886/0.6459, allocations: 59.38 kB / 0.5946 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005247/0.6464, allocations: 182.8 kB / 0.5947 GB, free: 15.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003278/0.6497, allocations: 2.136 MB / 0.5968 GB, free: 13.61 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02151/0.6712, allocations: 10.37 MB / 0.607 GB, free: 3.227 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06811/0.7394, allocations: 47.49 MB / 0.6533 GB, free: 2.629 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01464/0.7541, allocations: 5.821 MB / 0.659 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004167/0.7583, allocations: 2.992 MB / 0.6619 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01334/0.7716, allocations: 8.864 MB / 0.6706 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.584e-05/0.7717, allocations: 55.81 kB / 0.6706 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=206): time 5.029e-06/0.7717, allocations: 0 / 0.6706 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of matching and sorting (n=262): time 0.3552/1.127, allocations: 34.93 MB / 0.7048 GB, free: 189.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/1.127, allocations: 217.6 kB / 0.705 GB, free: 189.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008287/1.135, allocations: 4.766 MB / 0.7096 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007081/1.136, allocations: 66.23 kB / 0.7097 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002524/1.139, allocations: 3.54 MB / 0.7131 GB, free: 186.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001312/1.14, allocations: 0.9781 MB / 0.7141 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002505/1.142, allocations: 1.42 MB / 0.7155 GB, free: 185 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.503e-05/1.143, allocations: 302.4 kB / 0.7158 GB, free: 184.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004947/1.148, allocations: 3.177 MB / 0.7189 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007327/1.155, allocations: 7.04 MB / 0.7257 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01087/1.166, allocations: 10.95 MB / 0.7364 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001812/1.166, allocations: 35.06 kB / 0.7365 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02646/1.192, allocations: 13.75 MB / 0.7499 GB, free: 162.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001992/1.193, allocations: 60 kB / 0.75 GB, free: 162.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002247/1.193, allocations: 136 kB / 0.7501 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0119/1.205, allocations: 4.395 MB / 0.7544 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004686/1.21, allocations: 1.482 MB / 0.7558 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03449/1.244, allocations: 29.04 MB / 0.7842 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006717/1.251, allocations: 407.4 kB / 0.7846 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001428/1.252, allocations: 408 kB / 0.785 GB, free: 126.5 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.006078/1.258, allocations: 2.475 MB / 0.7874 GB, free: 124 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001346/1.26, allocations: 447.3 kB / 0.7878 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01656/1.276, allocations: 8.479 MB / 0.7961 GB, free: 115.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.99e-05/1.276, allocations: 28 kB / 0.7961 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.011e-05/1.277, allocations: 15.98 kB / 0.7961 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.912e-05/1.277, allocations: 11.97 kB / 0.7961 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03162/1.308, allocations: 17.08 MB / 0.8128 GB, free: 97.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-05/1.308, allocations: 11.94 kB / 0.8128 GB, free: 97.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/1.31, allocations: 295.5 kB / 0.8131 GB, free: 97.55 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009993/1.32, allocations: 3.975 MB / 0.817 GB, free: 93.56 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005247/1.32, allocations: 48 kB / 0.817 GB, free: 93.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03048/1.351, allocations: 27.76 MB / 0.8442 GB, free: 65.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/1.351, allocations: 8 kB / 0.8442 GB, free: 65.33 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01889/1.37, allocations: 12.42 MB / 0.8563 GB, free: 52.77 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001422/1.371, allocations: 499.2 kB / 0.8568 GB, free: 52.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001181/1.372, allocations: 51.94 kB / 0.8568 GB, free: 52.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002612/1.375, allocations: 175.8 kB / 0.857 GB, free: 52.04 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007733/1.376, allocations: 190 kB / 0.8572 GB, free: 51.86 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002364/1.376, allocations: 71.98 kB / 0.8572 GB, free: 51.79 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003765/1.38, allocations: 3.006 MB / 0.8602 GB, free: 48.79 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.9e-07/1.38, allocations: 4 kB / 0.8602 GB, free: 48.78 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006403/1.386, allocations: 1.463 MB / 0.8616 GB, free: 47.32 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.000603/1.387, allocations: 187.9 kB / 0.8618 GB, free: 47.14 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01391/1.401, allocations: 10.01 MB / 0.8716 GB, free: 37.12 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/1.401, allocations: 0 / 0.8716 GB, free: 37.12 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004712/1.406, allocations: 3.538 MB / 0.875 GB, free: 33.55 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/1.409, allocations: 0.5789 MB / 0.8756 GB, free: 32.98 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02077/1.43, allocations: 14.97 MB / 0.8902 GB, free: 17.94 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005427/1.436, allocations: 3.93 MB / 0.894 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00618/1.442, allocations: 1.995 MB / 0.896 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009959/1.443, allocations: 283.4 kB / 0.8963 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of SimCode: time 2.945e-06/1.443, allocations: 0 / 0.8963 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.3676/1.81, allocations: 72.61 MB / 0.9672 GB, free: 127.7 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/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