Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001496/0.001496, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001714/0.001715, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2144/0.2144, allocations: 46.11 MB / 344.1 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 74.5 kB / 417.6 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1331, allocations: 62.46 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01408/0.1472, allocations: 13.37 MB / 493.4 MB, free: 7.781 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009266/0.1565, allocations: 4.797 MB / 498.2 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00214/0.1587, allocations: 95.69 kB / 498.3 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00659/0.1653, allocations: 3.73 MB / 0.4903 GB, free: 15.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006328/0.1717, allocations: 2.151 MB / 0.4924 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002601/0.1743, allocations: 1.08 MB / 0.4935 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00927/0.1836, allocations: 6.666 MB / 0.5 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005621/0.1893, allocations: 4.506 MB / 0.5044 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2682/0.4575, allocations: 2.008 MB / 0.5063 GB, free: 16.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005803/0.4633, allocations: 2.738 MB / 0.509 GB, free: 16.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002451/0.4658, allocations: 427.5 kB / 0.5094 GB, free: 16.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004642/0.4705, allocations: 1.438 MB / 0.5108 GB, free: 16.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005029/0.4756, allocations: 2.429 MB / 0.5132 GB, free: 16.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007895/0.4835, allocations: 2.77 MB / 0.5159 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0166/0.5001, allocations: 8.518 MB / 0.5242 GB, free: 13.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.087e-05/0.5002, allocations: 3.906 kB / 0.5242 GB, free: 13.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5002, allocations: 0.8125 kB / 0.5242 GB, free: 13.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005299/0.5007, allocations: 1.281 kB / 0.5242 GB, free: 13.59 MB / 382.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.0222/0.523, allocations: 6.233 MB / 0.5303 GB, free: 10.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.523, allocations: 8.312 kB / 0.5303 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01213/0.5352, allocations: 2.53 MB / 0.5328 GB, free: 8.855 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/0.5454, allocations: 3.84 MB / 0.5365 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002269/0.5457, allocations: 287.2 kB / 0.5368 GB, free: 6.574 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001733/0.5475, allocations: 385.4 kB / 0.5372 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02027/0.5677, allocations: 12.01 MB / 0.5489 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000185/0.568, allocations: 53.47 kB / 0.549 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005133/0.5685, allocations: 181.4 kB / 0.5491 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003372/0.5719, allocations: 2.147 MB / 0.5512 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02272/0.5946, allocations: 10.37 MB / 0.5614 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06625/0.6609, allocations: 47.5 MB / 0.6077 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01517/0.6761, allocations: 5.832 MB / 0.6134 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003804/0.6799, allocations: 2.971 MB / 0.6163 GB, free: 7.629 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01339/0.6934, allocations: 8.859 MB / 0.625 GB, free: 14.67 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.855e-05/0.6934, allocations: 67.33 kB / 0.625 GB, free: 14.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=206): time 4.548e-06/0.6935, allocations: 0 / 0.625 GB, free: 14.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=262): time 0.1278/0.8213, allocations: 34.91 MB / 0.6591 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.8214, allocations: 213.2 kB / 0.6593 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007308/0.8287, allocations: 4.768 MB / 0.664 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0006528/0.8294, allocations: 65.7 kB / 0.6641 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002767/0.8322, allocations: 3.533 MB / 0.6675 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001517/0.8337, allocations: 0.9737 MB / 0.6685 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002265/0.836, allocations: 1.427 MB / 0.6699 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001038/0.8361, allocations: 305.1 kB / 0.6701 GB, free: 464 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005106/0.8412, allocations: 3.176 MB / 0.6732 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008218/0.8495, allocations: 7.04 MB / 0.6801 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01637/0.8659, allocations: 10.96 MB / 0.6908 GB, free: 8.117 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001705/0.8661, allocations: 36 kB / 0.6909 GB, free: 8.082 MB / 0.5294 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.03488/0.901, allocations: 13.74 MB / 0.7043 GB, free: 10.42 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.9011, allocations: 68.16 kB / 0.7043 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001679/0.9013, allocations: 136 kB / 0.7045 GB, free: 10.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01355/0.9149, allocations: 4.4 MB / 0.7088 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005976/0.9209, allocations: 1.474 MB / 0.7102 GB, free: 4.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3459/1.267, allocations: 29.05 MB / 0.7386 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008992/1.276, allocations: 407.2 kB / 0.739 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001466/1.277, allocations: 410.2 kB / 0.7394 GB, free: 176.5 MB / 0.545 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.006303/1.284, allocations: 2.473 MB / 0.7418 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001356/1.285, allocations: 438.1 kB / 0.7422 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02333/1.308, allocations: 8.473 MB / 0.7505 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-05/1.309, allocations: 31.75 kB / 0.7505 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.471e-05/1.309, allocations: 11.88 kB / 0.7505 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.287e-05/1.309, allocations: 14.77 kB / 0.7505 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03413/1.343, allocations: 17.08 MB / 0.7672 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.925e-05/1.343, allocations: 11.28 kB / 0.7672 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001639/1.345, allocations: 307 kB / 0.7675 GB, free: 161.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009976/1.355, allocations: 3.971 MB / 0.7714 GB, free: 157.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006439/1.355, allocations: 45.75 kB / 0.7714 GB, free: 157.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03151/1.387, allocations: 27.75 MB / 0.7985 GB, free: 129.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/1.387, allocations: 4 kB / 0.7985 GB, free: 129.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01898/1.406, allocations: 12.43 MB / 0.8107 GB, free: 117.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001437/1.407, allocations: 0.4914 MB / 0.8111 GB, free: 116.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001093/1.408, allocations: 43.98 kB / 0.8112 GB, free: 116.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002754/1.411, allocations: 171.8 kB / 0.8113 GB, free: 116.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009506/1.412, allocations: 202.1 kB / 0.8115 GB, free: 116.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/1.412, allocations: 71.12 kB / 0.8116 GB, free: 116.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005154/1.417, allocations: 3.009 MB / 0.8145 GB, free: 113.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.01e-07/1.418, allocations: 0 / 0.8145 GB, free: 113.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007804/1.425, allocations: 1.448 MB / 0.816 GB, free: 111.8 MB / 0.545 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.0006313/1.426, allocations: 180.8 kB / 0.8161 GB, free: 111.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01496/1.441, allocations: 10.01 MB / 0.8259 GB, free: 101.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/1.441, allocations: 0 / 0.8259 GB, free: 101.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005345/1.446, allocations: 3.544 MB / 0.8294 GB, free: 98.03 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003912/1.45, allocations: 0.5791 MB / 0.8299 GB, free: 97.46 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0212/1.472, allocations: 12.56 MB / 0.8422 GB, free: 84.82 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004231/1.476, allocations: 3.907 MB / 0.846 GB, free: 80.88 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004685/1.48, allocations: 2.003 MB / 0.848 GB, free: 78.87 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008961/1.481, allocations: 279.4 kB / 0.8482 GB, free: 78.6 MB / 0.545 GB Notification: Performance of SimCode: time 6.22e-07/1.481, allocations: 0 / 0.8482 GB, free: 78.6 MB / 0.545 GB Notification: Performance of Templates: time 0.3286/1.81, allocations: 72.46 MB / 0.919 GB, free: 179.9 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches