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.001204/0.001204, allocations: 118.2 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001348, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.246/0.246, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 75.88 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4339/0.4353, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.0151/0.4504, allocations: 13.38 MB / 0.544 GB, free: 3.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01332/0.4638, allocations: 4.801 MB / 0.5487 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00455/0.4684, allocations: 95.53 kB / 0.5488 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007322/0.4758, allocations: 3.735 MB / 0.5525 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007529/0.4834, allocations: 2.21 MB / 0.5546 GB, free: 9.441 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003023/0.4864, allocations: 1.072 MB / 0.5557 GB, free: 8.367 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01044/0.4969, allocations: 6.662 MB / 0.5622 GB, free: 1.695 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006112/0.503, allocations: 4.506 MB / 0.5666 GB, free: 13.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004027/0.5071, allocations: 2.025 MB / 0.5686 GB, free: 11.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004613/0.5117, allocations: 2.742 MB / 0.5712 GB, free: 8.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002745/0.5145, allocations: 428 kB / 0.5716 GB, free: 7.922 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004887/0.5194, allocations: 1.443 MB / 0.5731 GB, free: 6.477 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004099/0.5236, allocations: 2.478 MB / 0.5755 GB, free: 3.992 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004179/0.5278, allocations: 2.765 MB / 0.5782 GB, free: 1.211 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01397/0.5418, allocations: 8.762 MB / 0.5867 GB, free: 8.422 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.099e-05/0.5419, allocations: 0 / 0.5867 GB, free: 8.422 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.5419, allocations: 0 / 0.5867 GB, free: 8.422 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003743/0.5422, allocations: 0 / 0.5867 GB, free: 8.422 MB / 446.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.01854/0.5608, allocations: 6.238 MB / 0.5928 GB, free: 2.109 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.5609, allocations: 8.031 kB / 0.5928 GB, free: 2.102 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01164/0.5725, allocations: 2.521 MB / 0.5953 GB, free: 15.57 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00946/0.582, allocations: 3.945 MB / 0.5991 GB, free: 11.57 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.5823, allocations: 283.7 kB / 0.5994 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001413/0.5837, allocations: 391.6 kB / 0.5998 GB, free: 10.91 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02168/0.6054, allocations: 12 MB / 0.6115 GB, free: 14.11 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001563/0.6056, allocations: 63.42 kB / 0.6116 GB, free: 14.05 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004962/0.6061, allocations: 175.9 kB / 0.6117 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003219/0.6093, allocations: 2.147 MB / 0.6138 GB, free: 11.73 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02175/0.6311, allocations: 10.37 MB / 0.624 GB, free: 1.348 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06292/0.6941, allocations: 47.27 MB / 0.6701 GB, free: 0.7344 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01493/0.7091, allocations: 5.825 MB / 0.6758 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004291/0.7134, allocations: 2.981 MB / 0.6787 GB, free: 7.77 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01433/0.7278, allocations: 8.857 MB / 0.6874 GB, free: 14.74 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.683e-05/0.7279, allocations: 51.88 kB / 0.6874 GB, free: 14.68 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 7.484e-06/0.7279, allocations: 4 kB / 0.6874 GB, free: 14.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.5075/1.235, allocations: 34.93 MB / 0.7215 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/1.236, allocations: 205.3 kB / 0.7217 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00798/1.244, allocations: 4.765 MB / 0.7264 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007091/1.244, allocations: 65.42 kB / 0.7264 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002236/1.246, allocations: 3.54 MB / 0.7299 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001233/1.248, allocations: 0.9767 MB / 0.7309 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001994/1.25, allocations: 1.42 MB / 0.7322 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.313e-05/1.25, allocations: 305.1 kB / 0.7325 GB, free: 158.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004219/1.254, allocations: 3.175 MB / 0.7356 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005745/1.26, allocations: 7.042 MB / 0.7425 GB, free: 151.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/1.27, allocations: 10.95 MB / 0.7532 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001434/1.27, allocations: 38.88 kB / 0.7532 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02558/1.296, allocations: 13.74 MB / 0.7667 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000147/1.296, allocations: 68.22 kB / 0.7667 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002161/1.296, allocations: 134.1 kB / 0.7669 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0108/1.307, allocations: 4.395 MB / 0.7711 GB, free: 124 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004513/1.312, allocations: 1.482 MB / 0.7726 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03401/1.346, allocations: 29.02 MB / 0.8009 GB, free: 93.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007019/1.353, allocations: 407.3 kB / 0.8013 GB, free: 92.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001255/1.354, allocations: 411.4 kB / 0.8017 GB, free: 92.28 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.004255/1.358, allocations: 2.473 MB / 0.8041 GB, free: 89.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.359, allocations: 438.4 kB / 0.8045 GB, free: 89.36 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/1.374, allocations: 8.486 MB / 0.8128 GB, free: 80.85 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-05/1.374, allocations: 35.52 kB / 0.8129 GB, free: 80.82 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.421e-05/1.374, allocations: 19.88 kB / 0.8129 GB, free: 80.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-05/1.374, allocations: 15.95 kB / 0.8129 GB, free: 80.79 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02638/1.4, allocations: 16.91 MB / 0.8294 GB, free: 63.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.443e-05/1.401, allocations: 4.594 kB / 0.8294 GB, free: 63.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/1.402, allocations: 307.5 kB / 0.8297 GB, free: 63.47 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009441/1.411, allocations: 3.957 MB / 0.8336 GB, free: 59.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003232/1.412, allocations: 51.98 kB / 0.8336 GB, free: 59.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02924/1.441, allocations: 27.79 MB / 0.8608 GB, free: 31.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/1.441, allocations: 8 kB / 0.8608 GB, free: 31.24 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0183/1.459, allocations: 12.43 MB / 0.8729 GB, free: 18.66 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/1.461, allocations: 495.3 kB / 0.8734 GB, free: 18.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006723/1.461, allocations: 51.98 kB / 0.8734 GB, free: 18.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001976/1.463, allocations: 179.2 kB / 0.8736 GB, free: 17.93 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007366/1.464, allocations: 198 kB / 0.8738 GB, free: 17.74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/1.464, allocations: 68 kB / 0.8739 GB, free: 17.67 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003872/1.468, allocations: 3.005 MB / 0.8768 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.4e-07/1.468, allocations: 0 / 0.8768 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006894/1.475, allocations: 1.447 MB / 0.8782 GB, free: 13.23 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.0006637/1.476, allocations: 188.8 kB / 0.8784 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01245/1.488, allocations: 8.475 MB / 0.8867 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/1.488, allocations: 0 / 0.8867 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005223/1.494, allocations: 3.54 MB / 0.8901 GB, free: 0.9844 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003915/1.497, allocations: 0.5726 MB / 0.8907 GB, free: 424 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02136/1.519, allocations: 12.42 MB / 0.9028 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004639/1.524, allocations: 3.915 MB / 0.9066 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004432/1.528, allocations: 1.999 MB / 0.9086 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007885/1.529, allocations: 279.4 kB / 0.9088 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of SimCode: time 8.41e-07/1.529, allocations: 0 / 0.9088 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of Templates: time 0.4633/1.992, allocations: 69.13 MB / 0.9764 GB, free: 201.2 MB / 0.6231 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