Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.JointUSR.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01078/0.01079, allocations: 106.2 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001171/0.001171, allocations: 178.2 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.028/2.028, allocations: 194.5 MB / 211.3 MB, free: 11 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2894/0.2894, allocations: 40.04 MB / 296.5 MB, free: 6.281 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006623/0.0006625, allocations: 16 kB / 361.1 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1391, allocations: 54.88 MB / 416 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.3761/0.5152, allocations: 39.04 MB / 455.1 MB, free: 30.51 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02439/0.5397, allocations: 8.859 MB / 463.9 MB, free: 30.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008155/0.5479, allocations: 186 kB / 464.1 MB, free: 30.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006443/0.5544, allocations: 1.937 MB / 466 MB, free: 29.71 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01901/0.5735, allocations: 5.117 MB / 471.2 MB, free: 29.33 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004067/0.5776, allocations: 0.6576 MB / 471.8 MB, free: 29.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00383/0.5815, allocations: 1.353 MB / 473.2 MB, free: 29.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009582/0.5911, allocations: 5.182 MB / 478.4 MB, free: 28.68 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001944/0.5931, allocations: 0.7846 MB / 479.1 MB, free: 28.54 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002369/0.5955, allocations: 0.9905 MB / 480.1 MB, free: 28.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007676/0.5963, allocations: 135.6 kB / 480.3 MB, free: 28.37 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002121/0.5985, allocations: 0.6902 MB / 481 MB, free: 28.36 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001846/0.6004, allocations: 1.269 MB / 482.2 MB, free: 28.22 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009008/0.6013, allocations: 0.7004 MB / 482.9 MB, free: 28.05 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008312/0.6096, allocations: 5.031 MB / 488 MB, free: 27.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.6097, allocations: 0 / 488 MB, free: 27.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.447e-06/0.6097, allocations: 0 / 488 MB, free: 27.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002593/0.61, allocations: 0 / 488 MB, free: 27.73 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.01565/0.6256, allocations: 3.782 MB / 491.7 MB, free: 26.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.6257, allocations: 10.36 kB / 491.7 MB, free: 26.13 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002849/0.6286, allocations: 0.6323 MB / 492.4 MB, free: 26.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005366/0.634, allocations: 0.5888 MB / 493 MB, free: 25.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006749/0.6408, allocations: 1.811 MB / 494.8 MB, free: 25.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002807/0.6411, allocations: 236.1 kB / 495 MB, free: 25.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001497/0.6426, allocations: 314 kB / 495.3 MB, free: 25.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03412/0.6768, allocations: 9.377 MB / 0.4929 GB, free: 20.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002006/0.677, allocations: 14.94 kB / 0.4929 GB, free: 20.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001394/0.6785, allocations: 137.2 kB / 0.493 GB, free: 19.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006701/0.6852, allocations: 1.586 MB / 0.4946 GB, free: 19.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03819/0.7234, allocations: 7.643 MB / 0.502 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05883/0.7823, allocations: 27.97 MB / 0.5293 GB, free: 4.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0142/0.7966, allocations: 2.342 MB / 0.5316 GB, free: 2.453 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01839/0.815, allocations: 7.674 MB / 0.5391 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.12e-05/0.8151, allocations: 51.16 kB / 0.5392 GB, free: 10.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 4.218e-06/0.8151, allocations: 4 kB / 0.5392 GB, free: 10.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=97): time 0.03473/0.8499, allocations: 7.161 MB / 0.5462 GB, free: 2.988 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.85, allocations: 145.5 kB / 0.5463 GB, free: 2.812 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005526/0.8555, allocations: 2.615 MB / 0.5489 GB, free: 184 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002865/0.8559, allocations: 41.7 kB / 0.5489 GB, free: 136 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002523/0.8584, allocations: 2.415 MB / 0.5512 GB, free: 13.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006179/0.8591, allocations: 394.7 kB / 0.5516 GB, free: 13.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002988/0.8594, allocations: 76 kB / 0.5517 GB, free: 13.26 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003752/0.8598, allocations: 466.4 kB / 0.5521 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002985/0.8628, allocations: 1.069 MB / 0.5532 GB, free: 11.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005009/0.8678, allocations: 3.448 MB / 0.5566 GB, free: 7.098 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004792/0.8727, allocations: 1.841 MB / 0.5584 GB, free: 5.258 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.432e-05/0.8728, allocations: 24 kB / 0.5584 GB, free: 5.234 MB / 426.7 MB Notification: Performance of matching and sorting (n=496) (initialization): time 0.01286/0.8856, allocations: 4.399 MB / 0.5627 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.643e-05/0.8858, allocations: 47.94 kB / 0.5627 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/0.8859, allocations: 87.97 kB / 0.5628 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001833/0.8861, allocations: 124 kB / 0.5629 GB, free: 0.5781 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006115/0.8923, allocations: 0.9475 MB / 0.5638 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002076/0.8925, allocations: 167.4 kB / 0.564 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003947/0.8965, allocations: 191.8 kB / 0.5642 GB, free: 15.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006327/0.8972, allocations: 228 kB / 0.5644 GB, free: 15.05 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 387 * Number of states: 0 () * Number of discrete variables: 40 (jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (496): * Single equations (assignments): 496 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004323/0.9015, allocations: 1.589 MB / 0.566 GB, free: 13.45 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005963/0.9021, allocations: 229 kB / 0.5662 GB, free: 13.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00375/0.9059, allocations: 1.385 MB / 0.5675 GB, free: 11.83 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.952e-05/0.9059, allocations: 8 kB / 0.5675 GB, free: 11.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/0.906, allocations: 7.125 kB / 0.5675 GB, free: 11.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.163e-05/0.906, allocations: 8.125 kB / 0.5675 GB, free: 11.81 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01571/0.9217, allocations: 6.023 MB / 0.5734 GB, free: 5.512 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.982e-05/0.9218, allocations: 16 kB / 0.5734 GB, free: 5.496 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/0.9234, allocations: 223.6 kB / 0.5737 GB, free: 5.277 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.703e-05/0.9235, allocations: 20 kB / 0.5737 GB, free: 5.258 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.9236, allocations: 40 kB / 0.5737 GB, free: 5.219 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.93e-05/0.9237, allocations: 35.86 kB / 0.5738 GB, free: 5.184 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.557e-05/0.9237, allocations: 23.88 kB / 0.5738 GB, free: 5.16 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004495/0.9282, allocations: 3.238 MB / 0.5769 GB, free: 1.438 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009673/0.9292, allocations: 318 kB / 0.5772 GB, free: 1.105 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004586/0.9297, allocations: 47.94 kB / 0.5773 GB, free: 1.059 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/0.9314, allocations: 51.97 kB / 0.5773 GB, free: 1.008 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003648/0.9318, allocations: 120.1 kB / 0.5774 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.932, allocations: 44 kB / 0.5775 GB, free: 0.8477 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004478/0.9365, allocations: 1.668 MB / 0.5791 GB, free: 15.17 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.9365, allocations: 0 / 0.5791 GB, free: 15.17 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005255/0.9418, allocations: 0.6718 MB / 0.5798 GB, free: 14.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 0 () * 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 (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006575/0.9484, allocations: 7.804 MB / 0.5874 GB, free: 6.211 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006406/0.9549, allocations: 2.488 MB / 0.5898 GB, free: 3.742 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-05/0.9549, allocations: 4 kB / 0.5898 GB, free: 3.738 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001572/0.9565, allocations: 0.5735 MB / 0.5904 GB, free: 3.168 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002135/0.9587, allocations: 300.3 kB / 0.5907 GB, free: 2.879 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3439/1.303, allocations: 70.77 MB / 0.6598 GB, free: 122.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005154/1.308, allocations: 2.795 MB / 0.6625 GB, free: 121.8 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005109/1.313, allocations: 1.033 MB / 0.6635 GB, free: 121.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003519/1.317, allocations: 1.457 MB / 0.665 GB, free: 121.7 MB / 490.7 MB Notification: Performance of SimCode: time 3.277e-06/1.317, allocations: 3.156 kB / 0.665 GB, free: 121.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1266/1.443, allocations: 49.12 MB / 0.7129 GB, free: 101.4 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/1.443, allocations: 169.8 kB / 0.7131 GB, free: 101.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.067/5.511, allocations: 4.062 kB / 0.7131 GB, free: 101.2 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat