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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 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: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009616/0.0009616, allocations: 106.5 kB / 291.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3444/0.3444, allocations: 44.12 MB / 386.1 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 59.86 kB / 457.7 MB, free: 2.289 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3184, allocations: 60.79 MB / 0.5064 GB, free: 38.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.03678/0.3552, allocations: 53.46 MB / 0.5586 GB, free: 16 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02715/0.3824, allocations: 11.2 MB / 0.5695 GB, free: 8.566 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01234/0.3948, allocations: 235.8 kB / 0.5698 GB, free: 8.527 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007212/0.402, allocations: 3.127 MB / 0.5728 GB, free: 7.102 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007964/0.4101, allocations: 2.408 MB / 0.5752 GB, free: 6.059 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00294/0.4131, allocations: 0.9118 MB / 0.576 GB, free: 5.699 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01464/0.4277, allocations: 9.943 MB / 0.5858 GB, free: 14.67 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00737/0.4352, allocations: 4.291 MB / 0.5899 GB, free: 10.32 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004264/0.4395, allocations: 1.981 MB / 0.5919 GB, free: 8.328 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005666/0.4452, allocations: 3.431 MB / 0.5952 GB, free: 4.887 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001932/0.4471, allocations: 336 kB / 0.5956 GB, free: 4.559 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004623/0.4518, allocations: 1.435 MB / 0.597 GB, free: 3.121 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004454/0.4563, allocations: 2.754 MB / 0.5996 GB, free: 368 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005836/0.4621, allocations: 3.114 MB / 0.6027 GB, free: 13.22 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01299/0.4751, allocations: 9.945 MB / 0.6124 GB, free: 3.25 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.4752, allocations: 0 / 0.6124 GB, free: 3.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4752, allocations: 0 / 0.6124 GB, free: 3.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004222/0.4756, allocations: 0 / 0.6124 GB, free: 3.25 MB / 426.7 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.02003/0.4957, allocations: 7.326 MB / 0.6196 GB, free: 11.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.4957, allocations: 12.03 kB / 0.6196 GB, free: 11.83 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01701/0.5128, allocations: 3.923 MB / 0.6234 GB, free: 7.891 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01067/0.5235, allocations: 4.122 MB / 0.6274 GB, free: 3.707 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002951/0.5238, allocations: 328.4 kB / 0.6277 GB, free: 3.383 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001982/0.5258, allocations: 427.6 kB / 0.6281 GB, free: 2.965 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02911/0.5549, allocations: 15.73 MB / 0.6435 GB, free: 2.297 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001463/0.5551, allocations: 67.36 kB / 0.6436 GB, free: 2.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005933/0.5557, allocations: 203.8 kB / 0.6438 GB, free: 2.031 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005083/0.5608, allocations: 3.216 MB / 0.6469 GB, free: 14.81 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02731/0.5882, allocations: 14.16 MB / 0.6607 GB, free: 0.625 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3253/0.9135, allocations: 57.77 MB / 0.7172 GB, free: 87.28 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01272/0.9263, allocations: 6.59 MB / 0.7236 GB, free: 84.42 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005034/0.9313, allocations: 3.752 MB / 0.7273 GB, free: 82.92 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0254/0.9568, allocations: 14.78 MB / 0.7417 GB, free: 75.36 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.826e-05/0.9568, allocations: 70.5 kB / 0.7418 GB, free: 75.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=292): time 5.761e-06/0.9569, allocations: 0 / 0.7418 GB, free: 75.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=342): time 0.1361/1.093, allocations: 42.5 MB / 0.7833 GB, free: 49.29 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.28e-05/1.093, allocations: 217.9 kB / 0.7835 GB, free: 49.03 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006138/1.099, allocations: 5.466 MB / 0.7888 GB, free: 43.58 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007804/1.1, allocations: 69.7 kB / 0.7889 GB, free: 43.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001808/1.102, allocations: 4.351 MB / 0.7931 GB, free: 39.12 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001232/1.103, allocations: 1.268 MB / 0.7944 GB, free: 37.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002247/1.105, allocations: 1.844 MB / 0.7962 GB, free: 35.98 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.48e-05/1.105, allocations: 309.1 kB / 0.7964 GB, free: 35.67 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005569/1.111, allocations: 4.835 MB / 0.8012 GB, free: 30.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008032/1.119, allocations: 9.824 MB / 0.8108 GB, free: 18.56 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01404/1.133, allocations: 15.62 MB / 0.826 GB, free: 492 kB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/1.133, allocations: 48 kB / 0.8261 GB, free: 444 kB / 490.7 MB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04736/1.181, allocations: 19.62 MB / 0.8452 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002574/1.181, allocations: 76 kB / 0.8453 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003049/1.181, allocations: 176 kB / 0.8455 GB, free: 12.51 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02408/1.205, allocations: 5.941 MB / 0.8513 GB, free: 6.559 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007844/1.213, allocations: 2.125 MB / 0.8533 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3088/1.522, allocations: 24.78 MB / 0.8775 GB, free: 154.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009002/1.531, allocations: 0.5648 MB / 0.8781 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002271/1.533, allocations: 0.5077 MB / 0.8786 GB, free: 154.2 MB / 0.5261 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.007316/1.541, allocations: 3.099 MB / 0.8816 GB, free: 153 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/1.542, allocations: 0.4929 MB / 0.8821 GB, free: 153 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03192/1.574, allocations: 13.01 MB / 0.8948 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000101/1.574, allocations: 56.77 kB / 0.8949 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.173e-05/1.574, allocations: 10.5 kB / 0.8949 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.195e-05/1.574, allocations: 17.31 kB / 0.8949 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05975/1.634, allocations: 24.67 MB / 0.919 GB, free: 139.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.192e-05/1.634, allocations: 5.625 kB / 0.919 GB, free: 139.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003393/1.638, allocations: 0.5841 MB / 0.9196 GB, free: 139.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01997/1.658, allocations: 4.973 MB / 0.9244 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000844/1.658, allocations: 55.41 kB / 0.9245 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02274/1.681, allocations: 19.98 MB / 0.944 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/1.681, allocations: 10.09 kB / 0.944 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5638/2.245, allocations: 145.8 MB / 1.086 GB, free: 160 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/2.247, allocations: 0.5296 MB / 1.087 GB, free: 159.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001029/2.248, allocations: 58.22 kB / 1.087 GB, free: 159.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003155/2.251, allocations: 264.2 kB / 1.087 GB, free: 159.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008054/2.252, allocations: 196.3 kB / 1.087 GB, free: 159.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002848/2.252, allocations: 88.53 kB / 1.087 GB, free: 159.7 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004859/2.257, allocations: 3.404 MB / 1.091 GB, free: 158.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.01e-07/2.257, allocations: 0.9375 kB / 1.091 GB, free: 158.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01043/2.267, allocations: 2.401 MB / 1.093 GB, free: 158.4 MB / 0.5417 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.0009681/2.268, allocations: 207.5 kB / 1.093 GB, free: 158.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01795/2.286, allocations: 11 MB / 1.104 GB, free: 154.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/2.286, allocations: 4.906 kB / 1.104 GB, free: 154.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007178/2.293, allocations: 4.128 MB / 1.108 GB, free: 152.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004842/2.298, allocations: 0.5789 MB / 1.109 GB, free: 152.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03097/2.329, allocations: 21.68 MB / 1.13 GB, free: 141.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008581/2.338, allocations: 4.738 MB / 1.134 GB, free: 139.5 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009357/2.347, allocations: 3.048 MB / 1.137 GB, free: 139.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002835/2.35, allocations: 353.6 kB / 1.138 GB, free: 139.3 MB / 0.5417 GB Notification: Performance of SimCode: time 9.71e-07/2.35, allocations: 2.078 kB / 1.138 GB, free: 139.3 MB / 0.5417 GB Notification: Performance of Templates: time 0.144/2.494, allocations: 116.3 MB / 1.251 GB, free: 28.89 MB / 0.5417 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches