Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_FourbarVariants_JointUSR",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.01008/0.01008, 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.663/1.663, allocations: 170.8 MB / 186.6 MB, free: 1.125 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.001952/0.001951, allocations: 111 kB / 226.2 MB, free: 10.1 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.4435/0.4435, allocations: 38.05 MB / 303.7 MB, free: 42.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004771/0.000477, allocations: 8 kB / 363 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1012, allocations: 48.71 MB / 411.7 MB, free: 4.719 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4543/0.5556, allocations: 104.2 MB / 0.5038 GB, free: 24 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003088/0.556, allocations: 78.77 kB / 0.5038 GB, free: 15.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.001/1.557, allocations: 171.8 MB / 0.6716 GB, free: 70.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.205e-06/1.557, allocations: 4 kB / 0.6716 GB, free: 70.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004406/1.557, allocations: 145.8 kB / 0.6717 GB, free: 70.33 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: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.03429/1.591, allocations: 8.238 MB / 0.6798 GB, free: 65.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/1.592, allocations: 11.81 kB / 0.6798 GB, free: 65.07 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007888/1.599, allocations: 1.622 MB / 0.6814 GB, free: 64.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05296/1.652, allocations: 6.943 MB / 0.6881 GB, free: 60.22 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03416/1.687, allocations: 9.874 MB / 0.6978 GB, free: 50.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007998/1.687, allocations: 0.5739 MB / 0.6984 GB, free: 49.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005201/1.693, allocations: 0.7657 MB / 0.6991 GB, free: 49.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06772/1.76, allocations: 20.76 MB / 0.7194 GB, free: 27.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005956/1.761, allocations: 99.08 kB / 0.7195 GB, free: 27.01 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006337/1.768, allocations: 359.3 kB / 0.7198 GB, free: 26.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007367/1.775, allocations: 1.968 MB / 0.7217 GB, free: 24.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05857/1.834, allocations: 18.3 MB / 0.7396 GB, free: 6.438 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4718/2.305, allocations: 82.17 MB / 0.8199 GB, free: 46.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03108/2.337, allocations: 7.361 MB / 0.827 GB, free: 45.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05308/2.39, allocations: 18.22 MB / 0.8448 GB, free: 36.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.214e-05/2.39, allocations: 77.92 kB / 0.8449 GB, free: 36.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=332): time 7.945e-06/2.39, allocations: 0 / 0.8449 GB, free: 36.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=413): time 0.2246/2.615, allocations: 36.21 MB / 0.8803 GB, free: 26.34 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.092e-05/2.615, allocations: 200.4 kB / 0.8805 GB, free: 26.14 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01608/2.631, allocations: 5.815 MB / 0.8861 GB, free: 23.02 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001041/2.632, allocations: 88.48 kB / 0.8862 GB, free: 22.94 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004987/2.637, allocations: 5.423 MB / 0.8915 GB, free: 18.07 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002517/2.639, allocations: 1.522 MB / 0.893 GB, free: 16.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001975/2.641, allocations: 204.9 kB / 0.8932 GB, free: 16.53 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001304/2.643, allocations: 0.7552 MB / 0.8939 GB, free: 15.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01212/2.655, allocations: 4.186 MB / 0.898 GB, free: 12.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01932/2.674, allocations: 10 MB / 0.9078 GB, free: 400 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01858/2.693, allocations: 6.357 MB / 0.914 GB, free: 10.91 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002196/2.693, allocations: 60 kB / 0.9141 GB, free: 10.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.4119/3.105, allocations: 15.94 MB / 0.9296 GB, free: 100.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000335/3.106, allocations: 92.5 kB / 0.9297 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007207/3.106, allocations: 206.6 kB / 0.9299 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02403/3.13, allocations: 2.352 MB / 0.9322 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02532/3.156, allocations: 2.436 MB / 0.9346 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04672/3.203, allocations: 12.01 MB / 0.9463 GB, free: 99.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01409/3.217, allocations: 0.6858 MB / 0.947 GB, free: 99.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002409/3.219, allocations: 0.5926 MB / 0.9476 GB, free: 99.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[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],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1269): * Single equations (assignments): 1262 * Array equations: 6 * 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 prepare postOptimizeDAE: time 0.01045/3.23, allocations: 3.754 MB / 0.9512 GB, free: 98.93 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001686/3.231, allocations: 0.5955 MB / 0.9518 GB, free: 98.93 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03211/3.264, allocations: 8.163 MB / 0.9598 GB, free: 98.69 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001492/3.264, allocations: 68.22 kB / 0.9599 GB, free: 98.68 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.977e-05/3.264, allocations: 9.688 kB / 0.9599 GB, free: 98.68 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.153e-05/3.264, allocations: 22.34 kB / 0.9599 GB, free: 98.68 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06816/3.332, allocations: 18.81 MB / 0.9783 GB, free: 94.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.966e-05/3.332, allocations: 11.19 kB / 0.9783 GB, free: 94.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007356/3.34, allocations: 0.6464 MB / 0.9789 GB, free: 94.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01433/3.354, allocations: 1.891 MB / 0.9807 GB, free: 93.89 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000902/3.355, allocations: 85.75 kB / 0.9808 GB, free: 93.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02721/3.382, allocations: 10.35 MB / 0.9909 GB, free: 89.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.349e-05/3.382, allocations: 17.16 kB / 0.991 GB, free: 89.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03818/3.42, allocations: 14.29 MB / 1.005 GB, free: 82.05 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004728/3.425, allocations: 1.161 MB / 1.006 GB, free: 81.43 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002467/3.428, allocations: 83.25 kB / 1.006 GB, free: 81.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006591/3.434, allocations: 261.5 kB / 1.006 GB, free: 81.34 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001511/3.436, allocations: 255.6 kB / 1.007 GB, free: 81.29 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005545/3.436, allocations: 115.8 kB / 1.007 GB, free: 81.27 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01246/3.449, allocations: 4.07 MB / 1.011 GB, free: 79.96 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.91e-07/3.449, allocations: 0 / 1.011 GB, free: 79.96 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01388/3.463, allocations: 1.936 MB / 1.013 GB, free: 79.74 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * 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 (324): * Single equations (assignments): 317 * Array equations: 6 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03946/3.502, allocations: 17.23 MB / 1.029 GB, free: 69.82 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02453/3.527, allocations: 9.838 MB / 1.039 GB, free: 61.33 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/3.527, allocations: 3.938 kB / 1.039 GB, free: 61.33 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008658/3.536, allocations: 3.319 MB / 1.042 GB, free: 58.36 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007531/3.543, allocations: 0.7277 MB / 1.043 GB, free: 57.75 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4835/4.027, allocations: 176.1 MB / 1.215 GB, free: 29.55 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01572/4.043, allocations: 5.742 MB / 1.221 GB, free: 28.66 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01666/4.059, allocations: 3.337 MB / 1.224 GB, free: 28.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009911/4.069, allocations: 3.68 MB / 1.227 GB, free: 28.59 MB / 0.5105 GB Notification: Performance of SimCode: time 1.482e-06/4.069, allocations: 0 / 1.227 GB, free: 28.59 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6677/4.737, allocations: 140.4 MB / 1.364 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/4.737, allocations: 198.7 kB / 1.365 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.388/13.12, allocations: 0 / 1.365 GB, free: 129.8 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat