Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.FourbarVariants.JointUSR.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_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.2+maint.om/package.mo): time 0.0102/0.0102, allocations: 174.9 kB / 15.12 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.962/1.962, allocations: 194.5 MB / 210.3 MB, free: 7.609 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002848/0.002848, allocations: 120.7 kB / 255.6 MB, free: 10.22 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2508/0.2508, allocations: 40.01 MB / 340.8 MB, free: 11.41 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008654/0.0008657, allocations: 14.53 kB / 406.3 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1401, allocations: 54.86 MB / 461.1 MB, free: 3.258 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5178/0.658, allocations: 110.9 MB / 0.5586 GB, free: 21.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.6583, allocations: 80.73 kB / 0.5587 GB, free: 21.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.064/1.722, allocations: 171.8 MB / 0.7264 GB, free: 79.37 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.577e-06/1.722, allocations: 0 / 0.7264 GB, free: 79.37 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005795/1.723, allocations: 150.7 kB / 0.7266 GB, free: 79.36 MB / 490.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.04025/1.763, allocations: 8.225 MB / 0.7346 GB, free: 76.69 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/1.763, allocations: 10.45 kB / 0.7346 GB, free: 76.69 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008978/1.772, allocations: 1.623 MB / 0.7362 GB, free: 76.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05549/1.828, allocations: 6.941 MB / 0.743 GB, free: 76.04 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03606/1.864, allocations: 9.877 MB / 0.7526 GB, free: 75.14 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009258/1.865, allocations: 0.5731 MB / 0.7532 GB, free: 75.13 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004932/1.87, allocations: 0.7644 MB / 0.7539 GB, free: 75.12 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06835/1.938, allocations: 20.77 MB / 0.7742 GB, free: 71.22 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007256/1.939, allocations: 98.53 kB / 0.7743 GB, free: 71.21 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004669/1.944, allocations: 363.7 kB / 0.7747 GB, free: 71.21 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004648/1.949, allocations: 1.955 MB / 0.7766 GB, free: 71.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05977/2.008, allocations: 18.32 MB / 0.7945 GB, free: 71.15 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1473/2.156, allocations: 82.18 MB / 0.8747 GB, free: 28.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02974/2.186, allocations: 7.362 MB / 0.8819 GB, free: 21.67 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05007/2.236, allocations: 18.21 MB / 0.8997 GB, free: 5.531 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.954e-05/2.236, allocations: 68.5 kB / 0.8998 GB, free: 5.453 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=332): time 8.015e-06/2.236, allocations: 0 / 0.8998 GB, free: 5.453 MB / 0.4948 GB Notification: Performance of matching and sorting (n=413): time 0.5884/2.824, allocations: 36.21 MB / 0.9351 GB, free: 86.77 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.63e-05/2.824, allocations: 194.1 kB / 0.9353 GB, free: 86.57 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01635/2.841, allocations: 5.814 MB / 0.941 GB, free: 86.08 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001024/2.842, allocations: 85.78 kB / 0.9411 GB, free: 86.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005312/2.847, allocations: 5.425 MB / 0.9464 GB, free: 83.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002997/2.85, allocations: 1.52 MB / 0.9478 GB, free: 82.65 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002308/2.853, allocations: 205.9 kB / 0.948 GB, free: 82.65 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001538/2.854, allocations: 0.7547 MB / 0.9488 GB, free: 82.32 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01655/2.871, allocations: 4.19 MB / 0.9529 GB, free: 82.3 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02189/2.893, allocations: 10 MB / 0.9626 GB, free: 74.88 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02161/2.914, allocations: 6.329 MB / 0.9688 GB, free: 74.82 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002843/2.915, allocations: 59.97 kB / 0.9689 GB, free: 74.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.06792/2.983, allocations: 15.95 MB / 0.9844 GB, free: 73.76 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001934/2.983, allocations: 93.09 kB / 0.9845 GB, free: 73.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003537/2.983, allocations: 209.4 kB / 0.9847 GB, free: 73.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01427/2.998, allocations: 2.36 MB / 0.987 GB, free: 73.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01635/3.014, allocations: 2.443 MB / 0.9894 GB, free: 73.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03221/3.046, allocations: 12 MB / 1.001 GB, free: 67.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0135/3.06, allocations: 0.6831 MB / 1.002 GB, free: 67.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002738/3.063, allocations: 0.592 MB / 1.002 GB, free: 67.68 MB / 0.4948 GB 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.01144/3.074, allocations: 3.752 MB / 1.006 GB, free: 65.97 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002025/3.076, allocations: 0.5949 MB / 1.007 GB, free: 65.64 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03174/3.108, allocations: 8.161 MB / 1.015 GB, free: 62.72 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001313/3.108, allocations: 66.11 kB / 1.015 GB, free: 62.71 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-05/3.108, allocations: 14.67 kB / 1.015 GB, free: 62.71 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.786e-05/3.108, allocations: 20.55 kB / 1.015 GB, free: 62.71 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06254/3.171, allocations: 18.83 MB / 1.033 GB, free: 48.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.182e-05/3.171, allocations: 12.19 kB / 1.033 GB, free: 48.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005871/3.177, allocations: 0.6441 MB / 1.034 GB, free: 48.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01279/3.19, allocations: 1.9 MB / 1.036 GB, free: 46.75 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009468/3.191, allocations: 76.73 kB / 1.036 GB, free: 46.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02832/3.219, allocations: 10.35 MB / 1.046 GB, free: 37.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.469e-05/3.219, allocations: 15.94 kB / 1.046 GB, free: 37.71 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03753/3.257, allocations: 14.29 MB / 1.06 GB, free: 24.55 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004683/3.261, allocations: 1.156 MB / 1.061 GB, free: 23.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002453/3.264, allocations: 85.03 kB / 1.061 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006588/3.271, allocations: 259.4 kB / 1.061 GB, free: 23.22 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001505/3.272, allocations: 261.1 kB / 1.061 GB, free: 23.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006355/3.273, allocations: 111.8 kB / 1.062 GB, free: 22.94 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01202/3.285, allocations: 4.068 MB / 1.066 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.71e-07/3.285, allocations: 0 / 1.066 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01334/3.298, allocations: 1.929 MB / 1.067 GB, free: 17.71 MB / 0.4948 GB 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.03954/3.338, allocations: 17.24 MB / 1.084 GB, free: 1.781 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3924/3.73, allocations: 9.914 MB / 1.094 GB, free: 97.65 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-05/3.73, allocations: 2.562 kB / 1.094 GB, free: 97.65 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01438/3.745, allocations: 3.337 MB / 1.097 GB, free: 97.48 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01003/3.755, allocations: 0.7235 MB / 1.098 GB, free: 97.46 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1416/3.897, allocations: 176.1 MB / 1.27 GB, free: 29.84 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02371/3.92, allocations: 5.756 MB / 1.275 GB, free: 28.93 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01759/3.938, allocations: 3.331 MB / 1.279 GB, free: 28.68 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01011/3.948, allocations: 3.679 MB / 1.282 GB, free: 28.67 MB / 0.6042 GB Notification: Performance of SimCode: time 2.164e-06/3.948, allocations: 0 / 1.282 GB, free: 28.67 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7947/4.743, allocations: 140.4 MB / 1.419 GB, free: 170.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003685/4.743, allocations: 204.1 kB / 1.42 GB, free: 170 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.724/13.47, allocations: 0 / 1.42 GB, free: 170 MB / 0.6042 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat