Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009701/0.009701, allocations: 166.5 kB / 15.11 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.746/1.746, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001949/0.001949, allocations: 115 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4363/0.4363, allocations: 38.05 MB / 303.7 MB, free: 42.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006568/0.0006569, allocations: 12 kB / 363 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1668, allocations: 48.7 MB / 411.7 MB, free: 4.719 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4844/0.6513, allocations: 101.6 MB / 0.5013 GB, free: 2.508 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/0.6516, allocations: 82.52 kB / 0.5013 GB, free: 2.465 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7897/1.441, allocations: 123.1 MB / 0.6216 GB, free: 81.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.306e-06/1.441, allocations: 0 / 0.6216 GB, free: 81.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003878/1.442, allocations: 106.8 kB / 0.6217 GB, free: 81.66 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: 1928 * Number of variables: 1928 Notification: Performance of Generate backend data structure: time 0.0291/1.471, allocations: 6.022 MB / 0.6275 GB, free: 79.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.273e-05/1.471, allocations: 14.38 kB / 0.6276 GB, free: 79.29 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005798/1.477, allocations: 0.9711 MB / 0.6285 GB, free: 79.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03756/1.515, allocations: 4.723 MB / 0.6331 GB, free: 78.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02438/1.539, allocations: 6.648 MB / 0.6396 GB, free: 78.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006225/1.54, allocations: 442 kB / 0.64 GB, free: 77.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003154/1.543, allocations: 0.5421 MB / 0.6406 GB, free: 77.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04593/1.589, allocations: 14.2 MB / 0.6544 GB, free: 72.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003763/1.589, allocations: 64.84 kB / 0.6545 GB, free: 72.83 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002911/1.592, allocations: 271 kB / 0.6547 GB, free: 72.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002897/1.595, allocations: 1.284 MB / 0.656 GB, free: 72.45 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03956/1.635, allocations: 11.89 MB / 0.6676 GB, free: 68.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08933/1.724, allocations: 59.22 MB / 0.7254 GB, free: 17.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02066/1.745, allocations: 4.674 MB / 0.73 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3318/2.077, allocations: 12.6 MB / 0.7423 GB, free: 76.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.937e-05/2.077, allocations: 53.91 kB / 0.7424 GB, free: 76.26 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 5.67e-06/2.077, allocations: 2.625 kB / 0.7424 GB, free: 76.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=242): time 0.3066/2.383, allocations: 39.77 MB / 0.7812 GB, free: 71.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.272e-05/2.384, allocations: 236 kB / 0.7814 GB, free: 71.65 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01087/2.394, allocations: 4.249 MB / 0.7856 GB, free: 71.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007342/2.395, allocations: 61.3 kB / 0.7856 GB, free: 71.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003664/2.399, allocations: 3.898 MB / 0.7895 GB, free: 69.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001648/2.401, allocations: 0.9209 MB / 0.7904 GB, free: 68.63 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001215/2.402, allocations: 145.9 kB / 0.7905 GB, free: 68.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005264/2.402, allocations: 0.6042 MB / 0.7911 GB, free: 68.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008351/2.411, allocations: 3.246 MB / 0.7942 GB, free: 67.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01142/2.422, allocations: 7.512 MB / 0.8016 GB, free: 60.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/2.433, allocations: 4.789 MB / 0.8063 GB, free: 58.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001462/2.434, allocations: 40.91 kB / 0.8063 GB, free: 58.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.04742/2.481, allocations: 13.85 MB / 0.8198 GB, free: 54.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/2.481, allocations: 77.81 kB / 0.8199 GB, free: 54.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002433/2.482, allocations: 152.7 kB / 0.82 GB, free: 54.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02084/2.502, allocations: 3.802 MB / 0.8238 GB, free: 53.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009798/2.512, allocations: 1.611 MB / 0.8253 GB, free: 53.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04352/2.556, allocations: 18.64 MB / 0.8435 GB, free: 42.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009574/2.565, allocations: 494 kB / 0.844 GB, free: 41.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001768/2.567, allocations: 427.7 kB / 0.8444 GB, free: 41.31 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 686 * Number of states: 0 () * Number of discrete variables: 34 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (856): * Single equations (assignments): 852 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007516/2.575, allocations: 2.662 MB / 0.847 GB, free: 38.96 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/2.576, allocations: 434 kB / 0.8474 GB, free: 38.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03298/2.609, allocations: 8.131 MB / 0.8554 GB, free: 32.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-05/2.609, allocations: 26.03 kB / 0.8554 GB, free: 32.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.596e-05/2.609, allocations: 12 kB / 0.8554 GB, free: 32.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.928e-05/2.609, allocations: 19.09 kB / 0.8554 GB, free: 32.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06142/2.671, allocations: 17.47 MB / 0.8725 GB, free: 17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.282e-05/2.671, allocations: 2.484 kB / 0.8725 GB, free: 17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005082/2.676, allocations: 387.4 kB / 0.8729 GB, free: 16.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03025/2.706, allocations: 3.863 MB / 0.8766 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008834/2.707, allocations: 36 kB / 0.8767 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04347/2.751, allocations: 17.09 MB / 0.8933 GB, free: 11.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/2.751, allocations: 7.5 kB / 0.8934 GB, free: 11.48 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.403/3.154, allocations: 12.64 MB / 0.9057 GB, free: 80.21 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005483/3.159, allocations: 0.9324 MB / 0.9066 GB, free: 80.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002375/3.162, allocations: 37.62 kB / 0.9066 GB, free: 80.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007043/3.169, allocations: 213.3 kB / 0.9068 GB, free: 80.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001163/3.17, allocations: 149.6 kB / 0.907 GB, free: 80.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003643/3.171, allocations: 59.52 kB / 0.907 GB, free: 80.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.009041/3.18, allocations: 2.984 MB / 0.91 GB, free: 79.94 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.473e-06/3.18, allocations: 0 / 0.91 GB, free: 79.94 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01066/3.19, allocations: 1.458 MB / 0.9114 GB, free: 79.94 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.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 (167): * Single equations (assignments): 163 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04223/3.233, allocations: 13.54 MB / 0.9246 GB, free: 78.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01933/3.252, allocations: 7.874 MB / 0.9323 GB, free: 78.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/3.252, allocations: 2.938 kB / 0.9323 GB, free: 78.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007767/3.26, allocations: 2.958 MB / 0.9352 GB, free: 77.98 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004495/3.264, allocations: 496.3 kB / 0.9357 GB, free: 77.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08188/3.346, allocations: 127.5 MB / 1.06 GB, free: 19.79 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0101/3.357, allocations: 4.205 MB / 1.064 GB, free: 18.29 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01111/3.368, allocations: 2.17 MB / 1.066 GB, free: 18.12 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006064/3.374, allocations: 2.479 MB / 1.069 GB, free: 16.07 MB / 0.4948 GB Notification: Performance of SimCode: time 2.234e-06/3.374, allocations: 3.938 kB / 1.069 GB, free: 16.07 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5998/3.974, allocations: 109.3 MB / 1.176 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002572/3.974, allocations: 188 kB / 1.176 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.266/10.24, allocations: 0 / 1.176 GB, free: 140.9 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat