Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008899/0.0008901, allocations: 90.59 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008751/0.0008752, allocations: 199.6 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.8 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2256/0.2256, allocations: 46.19 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002643/0.0002643, allocations: 8 kB / 419.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.127, allocations: 63.56 MB / 483.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3558/0.4829, allocations: 51.69 MB / 0.5222 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03058/0.5136, allocations: 11.01 MB / 0.533 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01513/0.5287, allocations: 240.8 kB / 0.5332 GB, free: 6.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002933/0.5317, allocations: 0.6092 MB / 0.5338 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007822/0.5396, allocations: 2.384 MB / 0.5361 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002424/0.542, allocations: 0.9056 MB / 0.537 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01185/0.5539, allocations: 9.977 MB / 0.5468 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008973/0.5629, allocations: 5.786 MB / 0.5524 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003898/0.5668, allocations: 1.737 MB / 0.5541 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005221/0.5721, allocations: 3.143 MB / 0.5572 GB, free: 8.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001589/0.5737, allocations: 240 kB / 0.5574 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004234/0.578, allocations: 1.323 MB / 0.5587 GB, free: 7.426 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004308/0.5823, allocations: 2.603 MB / 0.5613 GB, free: 4.828 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006265/0.5886, allocations: 2.94 MB / 0.5641 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01579/0.6044, allocations: 9.616 MB / 0.5735 GB, free: 8.488 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.359e-05/0.6045, allocations: 8 kB / 0.5735 GB, free: 8.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.388e-06/0.6045, allocations: 4 kB / 0.5735 GB, free: 8.477 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005541/0.6051, allocations: 0 / 0.5735 GB, free: 8.477 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01758/0.6227, allocations: 6.044 MB / 0.5794 GB, free: 2.395 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.709e-05/0.6228, allocations: 12.03 kB / 0.5794 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01802/0.6408, allocations: 4.019 MB / 0.5834 GB, free: 14.35 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009455/0.6503, allocations: 4.066 MB / 0.5873 GB, free: 10.26 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003476/0.6507, allocations: 317.4 kB / 0.5876 GB, free: 10.01 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002056/0.6528, allocations: 426.3 kB / 0.588 GB, free: 9.648 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03405/0.6869, allocations: 15.76 MB / 0.6034 GB, free: 9.133 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003044/0.6872, allocations: 63.36 kB / 0.6035 GB, free: 9.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001781/0.689, allocations: 201.7 kB / 0.6037 GB, free: 8.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005597/0.6946, allocations: 3.212 MB / 0.6068 GB, free: 5.734 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02936/0.724, allocations: 14.19 MB / 0.6207 GB, free: 7.516 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08268/0.8067, allocations: 57.79 MB / 0.6771 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01562/0.8224, allocations: 6.592 MB / 0.6836 GB, free: 5.633 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005713/0.8282, allocations: 3.753 MB / 0.6872 GB, free: 1.871 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02563/0.8538, allocations: 14.79 MB / 0.7017 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.239e-05/0.8539, allocations: 72.5 kB / 0.7017 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 6.282e-06/0.8539, allocations: 0 / 0.7017 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.4594/1.313, allocations: 42.75 MB / 0.7435 GB, free: 187.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/1.313, allocations: 213.4 kB / 0.7437 GB, free: 187.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01104/1.325, allocations: 5.461 MB / 0.749 GB, free: 185.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008708/1.325, allocations: 69.08 kB / 0.7491 GB, free: 185.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002577/1.328, allocations: 4.344 MB / 0.7533 GB, free: 182.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001723/1.33, allocations: 1.272 MB / 0.7546 GB, free: 181.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001079/1.331, allocations: 0.7743 MB / 0.7553 GB, free: 180.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.624e-05/1.331, allocations: 308.8 kB / 0.7556 GB, free: 180.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005928/1.337, allocations: 4.836 MB / 0.7604 GB, free: 178.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008561/1.345, allocations: 9.825 MB / 0.7699 GB, free: 167.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01726/1.363, allocations: 15.62 MB / 0.7852 GB, free: 149.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003182/1.363, allocations: 52 kB / 0.7852 GB, free: 149.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04672/1.41, allocations: 19.63 MB / 0.8044 GB, free: 130.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000219/1.41, allocations: 80 kB / 0.8045 GB, free: 130 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002738/1.41, allocations: 172 kB / 0.8047 GB, free: 129.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02278/1.433, allocations: 5.979 MB / 0.8105 GB, free: 123.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007573/1.441, allocations: 2.125 MB / 0.8126 GB, free: 121.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02967/1.47, allocations: 24.77 MB / 0.8368 GB, free: 96.65 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01017/1.481, allocations: 0.5705 MB / 0.8373 GB, free: 96.08 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002461/1.483, allocations: 0.5089 MB / 0.8378 GB, free: 95.57 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1099): * Single equations (assignments): 1091 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008937/1.492, allocations: 3.103 MB / 0.8409 GB, free: 92.46 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002114/1.494, allocations: 497.5 kB / 0.8413 GB, free: 91.97 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03401/1.528, allocations: 13.02 MB / 0.854 GB, free: 78.88 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001318/1.529, allocations: 56.84 kB / 0.8541 GB, free: 78.82 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.484e-05/1.529, allocations: 12 kB / 0.8541 GB, free: 78.81 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001319/1.529, allocations: 19.88 kB / 0.8541 GB, free: 78.79 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05687/1.586, allocations: 24.76 MB / 0.8783 GB, free: 53.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-05/1.586, allocations: 4.594 kB / 0.8783 GB, free: 53.56 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003777/1.59, allocations: 0.5851 MB / 0.8789 GB, free: 52.98 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0197/1.609, allocations: 5.011 MB / 0.8838 GB, free: 47.96 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009822/1.61, allocations: 59.94 kB / 0.8838 GB, free: 47.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02282/1.633, allocations: 19.99 MB / 0.9034 GB, free: 27.65 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.633, allocations: 4 kB / 0.9034 GB, free: 27.65 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3306/1.964, allocations: 17.6 MB / 0.9205 GB, free: 175.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001978/1.966, allocations: 0.5425 MB / 0.9211 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001701/1.968, allocations: 59.91 kB / 0.9211 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00408/1.972, allocations: 266.7 kB / 0.9214 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001118/1.973, allocations: 201.3 kB / 0.9216 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003129/1.973, allocations: 86.77 kB / 0.9217 GB, free: 175.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007044/1.98, allocations: 3.391 MB / 0.925 GB, free: 175.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.142e-06/1.98, allocations: 5.125 kB / 0.925 GB, free: 175.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01149/1.992, allocations: 1.739 MB / 0.9267 GB, free: 175.4 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 (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001181/1.993, allocations: 205.4 kB / 0.9269 GB, free: 175.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0177/2.011, allocations: 11.01 MB / 0.9376 GB, free: 171.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/2.011, allocations: 0 / 0.9376 GB, free: 171.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006245/2.017, allocations: 4.132 MB / 0.9417 GB, free: 169.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00843/2.025, allocations: 0.58 MB / 0.9422 GB, free: 169.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02527/2.051, allocations: 19.33 MB / 0.9611 GB, free: 159.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004685/2.055, allocations: 4.615 MB / 0.9656 GB, free: 156.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007174/2.063, allocations: 2.979 MB / 0.9685 GB, free: 155 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00165/2.064, allocations: 350.6 kB / 0.9688 GB, free: 154.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.193e-06/2.064, allocations: 0 / 0.9688 GB, free: 154.6 MB / 0.545 GB Notification: Performance of Templates: time 0.109/2.173, allocations: 76.79 MB / 1.044 GB, free: 80.21 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches