Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 95.78 kB / 17.35 MB, free: 6.371 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.00146/0.00146, allocations: 181.2 kB / 18.26 MB, free: 5.523 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.54/1.54, allocations: 223.3 MB / 242.3 MB, free: 200 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.2483/0.2483, allocations: 44.25 MB / 337.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005006/0.0005007, allocations: 8 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1309, allocations: 61.92 MB / 472.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3634/0.4944, allocations: 52.04 MB / 0.512 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03419/0.5287, allocations: 11.15 MB / 0.5229 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01605/0.5448, allocations: 229.3 kB / 0.5231 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002993/0.5478, allocations: 0.606 MB / 0.5237 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.5592, allocations: 2.417 MB / 0.5261 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003494/0.5627, allocations: 0.912 MB / 0.5269 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01699/0.5797, allocations: 9.907 MB / 0.5366 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009699/0.5895, allocations: 5.811 MB / 0.5423 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005411/0.5949, allocations: 1.74 MB / 0.544 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006448/0.6014, allocations: 3.15 MB / 0.5471 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001682/0.6031, allocations: 236 kB / 0.5473 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004504/0.6077, allocations: 1.343 MB / 0.5486 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004525/0.6122, allocations: 2.631 MB / 0.5512 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0072/0.6194, allocations: 2.97 MB / 0.5541 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01552/0.635, allocations: 9.697 MB / 0.5635 GB, free: 13.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.817e-06/0.635, allocations: 4 kB / 0.5636 GB, free: 13.03 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.6351, allocations: 0 / 0.5636 GB, free: 13.03 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003873/0.6355, allocations: 7.938 kB / 0.5636 GB, free: 13.02 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.01615/0.6516, allocations: 6.078 MB / 0.5695 GB, free: 6.906 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.6517, allocations: 8.031 kB / 0.5695 GB, free: 6.898 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01746/0.6691, allocations: 4.026 MB / 0.5734 GB, free: 2.863 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009709/0.6789, allocations: 4.119 MB / 0.5775 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002779/0.6792, allocations: 318.9 kB / 0.5778 GB, free: 14.47 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001926/0.6811, allocations: 436.4 kB / 0.5782 GB, free: 14.1 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03089/0.712, allocations: 15.76 MB / 0.5936 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002105/0.7123, allocations: 63.41 kB / 0.5936 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009189/0.7132, allocations: 208.8 kB / 0.5938 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005413/0.7186, allocations: 3.206 MB / 0.597 GB, free: 10.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03077/0.7494, allocations: 14.18 MB / 0.6108 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0828/0.8322, allocations: 57.8 MB / 0.6673 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01505/0.8473, allocations: 6.594 MB / 0.6737 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005275/0.8526, allocations: 3.747 MB / 0.6774 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02307/0.8757, allocations: 14.79 MB / 0.6918 GB, free: 7.09 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.4e-05/0.8758, allocations: 64.56 kB / 0.6919 GB, free: 7.02 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 5.901e-06/0.8758, allocations: 0 / 0.6919 GB, free: 7.02 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.4894/1.365, allocations: 42.77 MB / 0.7336 GB, free: 197.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/1.365, allocations: 214.9 kB / 0.7338 GB, free: 197.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00952/1.375, allocations: 5.466 MB / 0.7392 GB, free: 195.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001077/1.376, allocations: 72.33 kB / 0.7392 GB, free: 195.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003027/1.379, allocations: 4.353 MB / 0.7435 GB, free: 192.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002382/1.382, allocations: 1.266 MB / 0.7447 GB, free: 191.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001346/1.383, allocations: 0.7727 MB / 0.7455 GB, free: 191.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.787e-05/1.383, allocations: 301.1 kB / 0.7458 GB, free: 190.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006456/1.389, allocations: 4.838 MB / 0.7505 GB, free: 189 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01018/1.4, allocations: 9.829 MB / 0.7601 GB, free: 179.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01688/1.417, allocations: 15.62 MB / 0.7753 GB, free: 163.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000188/1.417, allocations: 48 kB / 0.7754 GB, free: 163.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04773/1.465, allocations: 19.63 MB / 0.7946 GB, free: 143.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001493/1.465, allocations: 78.03 kB / 0.7946 GB, free: 143.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002764/1.465, allocations: 176 kB / 0.7948 GB, free: 143.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02303/1.488, allocations: 5.976 MB / 0.8006 GB, free: 137.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007859/1.496, allocations: 2.125 MB / 0.8027 GB, free: 135.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02896/1.525, allocations: 24.79 MB / 0.8269 GB, free: 110.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009402/1.534, allocations: 0.5547 MB / 0.8275 GB, free: 109.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002174/1.537, allocations: 0.5206 MB / 0.828 GB, free: 109.1 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.00773/1.544, allocations: 3.096 MB / 0.831 GB, free: 106 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001624/1.546, allocations: 0.4894 MB / 0.8315 GB, free: 105.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03179/1.578, allocations: 13.03 MB / 0.8442 GB, free: 92.36 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001036/1.578, allocations: 53.08 kB / 0.8443 GB, free: 92.31 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.376e-05/1.578, allocations: 11.94 kB / 0.8443 GB, free: 92.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-05/1.578, allocations: 15.95 kB / 0.8443 GB, free: 92.29 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05252/1.631, allocations: 24.75 MB / 0.8685 GB, free: 67.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-05/1.631, allocations: 4 kB / 0.8685 GB, free: 67.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003196/1.634, allocations: 0.585 MB / 0.869 GB, free: 66.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0198/1.654, allocations: 5.006 MB / 0.8739 GB, free: 61.47 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001058/1.655, allocations: 59.94 kB / 0.874 GB, free: 61.41 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02326/1.678, allocations: 20 MB / 0.8935 GB, free: 41.14 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.678, allocations: 7.938 kB / 0.8935 GB, free: 41.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03458/1.713, allocations: 17.61 MB / 0.9107 GB, free: 23.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00168/1.715, allocations: 0.5414 MB / 0.9112 GB, free: 22.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001428/1.716, allocations: 55.98 kB / 0.9113 GB, free: 22.74 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003479/1.719, allocations: 266.3 kB / 0.9115 GB, free: 22.48 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008364/1.72, allocations: 202 kB / 0.9117 GB, free: 22.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002759/1.721, allocations: 87.98 kB / 0.9118 GB, free: 22.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.2752/1.996, allocations: 3.395 MB / 0.9151 GB, free: 186.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.11e-07/1.996, allocations: 0 / 0.9151 GB, free: 186.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01188/2.008, allocations: 1.762 MB / 0.9169 GB, free: 186.6 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.001122/2.009, allocations: 204.5 kB / 0.917 GB, free: 186.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01989/2.029, allocations: 11 MB / 0.9278 GB, free: 184.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.49e-05/2.029, allocations: 0 / 0.9278 GB, free: 184.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00649/2.035, allocations: 4.131 MB / 0.9318 GB, free: 182.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009018/2.044, allocations: 0.5927 MB / 0.9324 GB, free: 182.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02618/2.071, allocations: 19.34 MB / 0.9513 GB, free: 172.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006742/2.077, allocations: 4.614 MB / 0.9558 GB, free: 170.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007105/2.084, allocations: 2.981 MB / 0.9587 GB, free: 169.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001622/2.086, allocations: 356.6 kB / 0.9591 GB, free: 169.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.413e-06/2.086, allocations: 0 / 0.9591 GB, free: 169.2 MB / 0.545 GB Notification: Performance of Templates: time 0.1179/2.204, allocations: 76.92 MB / 1.034 GB, free: 94.91 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches