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.00101/0.00101, allocations: 94.8 kB / 17.35 MB, free: 6.344 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.001102/0.001101, allocations: 170.9 kB / 18.25 MB, free: 5.508 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.462/1.462, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2183/0.2183, allocations: 44.25 MB / 337.7 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003334, allocations: 11.94 kB / 410.3 MB, free: 27.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1517, allocations: 61.92 MB / 472.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.3931/0.5448, allocations: 60.79 MB / 0.5205 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0378/0.5826, allocations: 12.87 MB / 0.5331 GB, free: 6.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02164/0.6043, allocations: 278.9 kB / 0.5334 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002622/0.607, allocations: 0.4991 MB / 0.5339 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009414/0.6164, allocations: 2.07 MB / 0.5359 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003783/0.6202, allocations: 0.9912 MB / 0.5369 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01275/0.633, allocations: 9.121 MB / 0.5458 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01036/0.6434, allocations: 6.299 MB / 0.5519 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004175/0.6476, allocations: 1.507 MB / 0.5534 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004496/0.6521, allocations: 2.574 MB / 0.5559 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008254/0.653, allocations: 172 kB / 0.5561 GB, free: 9.586 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003246/0.6562, allocations: 1.289 MB / 0.5573 GB, free: 8.348 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002701/0.6589, allocations: 2.192 MB / 0.5595 GB, free: 6.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003758/0.6627, allocations: 2.465 MB / 0.5619 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01284/0.6756, allocations: 8.217 MB / 0.5699 GB, free: 11.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.6756, allocations: 0 / 0.5699 GB, free: 11.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.6756, allocations: 0 / 0.5699 GB, free: 11.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003366/0.676, allocations: 0 / 0.5699 GB, free: 11.66 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.01532/0.6913, allocations: 5.158 MB / 0.5749 GB, free: 6.465 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.6914, allocations: 8.031 kB / 0.5749 GB, free: 6.457 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01226/0.7036, allocations: 2.574 MB / 0.5775 GB, free: 3.875 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009254/0.7129, allocations: 3.936 MB / 0.5813 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002358/0.7132, allocations: 286.1 kB / 0.5816 GB, free: 15.69 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/0.7143, allocations: 386 kB / 0.5819 GB, free: 15.35 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02256/0.7369, allocations: 12.02 MB / 0.5937 GB, free: 2.656 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000208/0.7371, allocations: 59.44 kB / 0.5937 GB, free: 2.598 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006633/0.7378, allocations: 178.1 kB / 0.5939 GB, free: 2.461 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003537/0.7413, allocations: 2.153 MB / 0.596 GB, free: 328 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02587/0.7672, allocations: 10.38 MB / 0.6061 GB, free: 5.934 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06386/0.8311, allocations: 47.51 MB / 0.6525 GB, free: 5.312 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01477/0.846, allocations: 5.834 MB / 0.6582 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004107/0.8501, allocations: 2.988 MB / 0.6612 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01442/0.8646, allocations: 8.865 MB / 0.6698 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.395e-05/0.8647, allocations: 55.81 kB / 0.6699 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=206): time 5.911e-06/0.8647, allocations: 4 kB / 0.6699 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of matching and sorting (n=262): time 0.1344/0.9991, allocations: 34.99 MB / 0.704 GB, free: 288 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.9993, allocations: 209.9 kB / 0.7042 GB, free: 32 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3254/1.325, allocations: 4.767 MB / 0.7089 GB, free: 190.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008455/1.326, allocations: 63.14 kB / 0.709 GB, free: 190.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00309/1.329, allocations: 3.552 MB / 0.7124 GB, free: 188.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001622/1.33, allocations: 0.971 MB / 0.7134 GB, free: 187.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001109/1.331, allocations: 0.5981 MB / 0.714 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.969e-05/1.332, allocations: 305.3 kB / 0.7142 GB, free: 186.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006214/1.338, allocations: 3.176 MB / 0.7173 GB, free: 185.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008267/1.346, allocations: 7.043 MB / 0.7242 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/1.359, allocations: 10.95 MB / 0.7349 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001713/1.359, allocations: 38.5 kB / 0.735 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02871/1.388, allocations: 13.75 MB / 0.7484 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.103e-05/1.388, allocations: 64 kB / 0.7485 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001441/1.388, allocations: 132.9 kB / 0.7486 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01179/1.4, allocations: 4.398 MB / 0.7529 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004743/1.405, allocations: 1.479 MB / 0.7543 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03063/1.436, allocations: 26.86 MB / 0.7805 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006577/1.442, allocations: 408.5 kB / 0.7809 GB, free: 132 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001229/1.443, allocations: 412.7 kB / 0.7813 GB, free: 131.6 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.004792/1.448, allocations: 2.469 MB / 0.7837 GB, free: 129.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/1.449, allocations: 438.4 kB / 0.7842 GB, free: 128.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01589/1.465, allocations: 8.483 MB / 0.7924 GB, free: 120.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.552e-05/1.465, allocations: 32.61 kB / 0.7925 GB, free: 120.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.262e-05/1.465, allocations: 18.12 kB / 0.7925 GB, free: 120.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.013e-05/1.465, allocations: 11.95 kB / 0.7925 GB, free: 120.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03009/1.496, allocations: 17.07 MB / 0.8092 GB, free: 103 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-05/1.496, allocations: 8 kB / 0.8092 GB, free: 103 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001509/1.497, allocations: 299.6 kB / 0.8095 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0108/1.508, allocations: 4.101 MB / 0.8135 GB, free: 98.56 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005343/1.509, allocations: 54.38 kB / 0.8135 GB, free: 98.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02877/1.537, allocations: 25.65 MB / 0.8386 GB, free: 72.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/1.537, allocations: 11.94 kB / 0.8386 GB, free: 72.45 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01956/1.557, allocations: 12.43 MB / 0.8507 GB, free: 59.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/1.559, allocations: 0.4915 MB / 0.8512 GB, free: 59.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008176/1.559, allocations: 63.8 kB / 0.8513 GB, free: 59.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002314/1.562, allocations: 175.7 kB / 0.8514 GB, free: 59.14 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007707/1.563, allocations: 194 kB / 0.8516 GB, free: 58.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/1.563, allocations: 72 kB / 0.8517 GB, free: 58.88 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004132/1.567, allocations: 3.009 MB / 0.8546 GB, free: 55.88 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/1.567, allocations: 0 / 0.8546 GB, free: 55.88 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008175/1.575, allocations: 1.46 MB / 0.856 GB, free: 54.42 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.0006307/1.576, allocations: 191.5 kB / 0.8562 GB, free: 54.23 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0134/1.589, allocations: 8.415 MB / 0.8644 GB, free: 45.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.589, allocations: 4 kB / 0.8644 GB, free: 45.79 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005362/1.595, allocations: 3.554 MB / 0.8679 GB, free: 42.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006626/1.601, allocations: 0.551 MB / 0.8685 GB, free: 41.65 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01906/1.62, allocations: 15.04 MB / 0.8831 GB, free: 26.52 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003331/1.624, allocations: 3.926 MB / 0.887 GB, free: 22.56 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004412/1.628, allocations: 1.999 MB / 0.8889 GB, free: 20.56 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007279/1.629, allocations: 283.4 kB / 0.8892 GB, free: 20.28 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/1.629, allocations: 0 / 0.8892 GB, free: 20.28 MB / 0.5294 GB Notification: Performance of Templates: time 0.383/2.012, allocations: 68.26 MB / 0.9559 GB, free: 137.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