Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.619/1.619, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003517, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.08451, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4603/0.5449, allocations: 88.5 MB / 360.6 MB, free: 1.266 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.5453, allocations: 87.52 kB / 360.7 MB, free: 1.219 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7743/1.32, allocations: 126.1 MB / 486.8 MB, free: 70.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.005e-06/1.32, allocations: 0 / 486.8 MB, free: 70.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003857/1.32, allocations: 119.4 kB / 486.9 MB, free: 70.2 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02821/1.348, allocations: 6.779 MB / 493.7 MB, free: 66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/1.348, allocations: 9.688 kB / 493.7 MB, free: 66 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006351/1.355, allocations: 1.313 MB / 495 MB, free: 65.26 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0595/1.414, allocations: 8.304 MB / 0.4915 GB, free: 57.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02595/1.44, allocations: 7.291 MB / 0.4987 GB, free: 50.61 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005584/1.441, allocations: 452.4 kB / 0.4991 GB, free: 50.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003872/1.445, allocations: 0.586 MB / 0.4997 GB, free: 49.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0458/1.491, allocations: 15.7 MB / 0.515 GB, free: 32.94 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004065/1.491, allocations: 71.25 kB / 0.5151 GB, free: 32.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003228/1.494, allocations: 288.2 kB / 0.5153 GB, free: 32.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003419/1.498, allocations: 1.614 MB / 0.5169 GB, free: 31.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04003/1.538, allocations: 13.96 MB / 0.5305 GB, free: 17.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3863/1.924, allocations: 63.98 MB / 0.593 GB, free: 36.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02354/1.948, allocations: 6.439 MB / 0.5993 GB, free: 35.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03414/1.982, allocations: 14.33 MB / 0.6133 GB, free: 31.51 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.947e-05/1.982, allocations: 65.53 kB / 0.6134 GB, free: 31.47 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.394e-06/1.982, allocations: 0 / 0.6134 GB, free: 31.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.2607/2.243, allocations: 42.14 MB / 0.6545 GB, free: 22.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.438e-05/2.243, allocations: 213.5 kB / 0.6547 GB, free: 22.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01197/2.255, allocations: 4.813 MB / 0.6594 GB, free: 18.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009169/2.256, allocations: 73.55 kB / 0.6595 GB, free: 18.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003743/2.26, allocations: 4.296 MB / 0.6637 GB, free: 14.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002112/2.262, allocations: 1.238 MB / 0.6649 GB, free: 13.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001413/2.263, allocations: 179.1 kB / 0.6651 GB, free: 12.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0007554/2.264, allocations: 0.6821 MB / 0.6657 GB, free: 12.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01071/2.275, allocations: 4.532 MB / 0.6702 GB, free: 8.477 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01473/2.29, allocations: 9.486 MB / 0.6794 GB, free: 13.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01631/2.306, allocations: 6.409 MB / 0.6857 GB, free: 7.793 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000179/2.306, allocations: 52 kB / 0.6857 GB, free: 7.742 MB / 378.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.0756/2.382, allocations: 18.49 MB / 0.7038 GB, free: 5.566 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001587/2.382, allocations: 80 kB / 0.7039 GB, free: 5.488 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003289/2.383, allocations: 172 kB / 0.704 GB, free: 5.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3101/2.693, allocations: 5.633 MB / 0.7095 GB, free: 97.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01396/2.707, allocations: 2.039 MB / 0.7115 GB, free: 97.74 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05344/2.76, allocations: 24.28 MB / 0.7352 GB, free: 93.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01138/2.772, allocations: 0.539 MB / 0.7358 GB, free: 93.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002274/2.774, allocations: 0.5016 MB / 0.7362 GB, free: 93.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.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.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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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 prepare postOptimizeDAE: time 0.009229/2.783, allocations: 3.096 MB / 0.7393 GB, free: 92.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001513/2.785, allocations: 0.4909 MB / 0.7397 GB, free: 92.38 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05268/2.837, allocations: 12.34 MB / 0.7518 GB, free: 88.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001172/2.838, allocations: 59.39 kB / 0.7519 GB, free: 88.46 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.451e-05/2.838, allocations: 15.12 kB / 0.7519 GB, free: 88.46 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001004/2.838, allocations: 21.38 kB / 0.7519 GB, free: 88.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08228/2.92, allocations: 23.93 MB / 0.7753 GB, free: 79.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.452e-05/2.92, allocations: 10.09 kB / 0.7753 GB, free: 79.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005448/2.926, allocations: 0.565 MB / 0.7758 GB, free: 79.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0334/2.959, allocations: 4.646 MB / 0.7804 GB, free: 78.39 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008798/2.96, allocations: 61.66 kB / 0.7804 GB, free: 78.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0405/3, allocations: 19.56 MB / 0.7995 GB, free: 61.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-05/3.001, allocations: 9.953 kB / 0.7995 GB, free: 61.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05758/3.058, allocations: 17.37 MB / 0.8165 GB, free: 45.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004325/3.063, allocations: 1.213 MB / 0.8177 GB, free: 44.13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002242/3.065, allocations: 52 kB / 0.8177 GB, free: 44.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006219/3.071, allocations: 255.3 kB / 0.818 GB, free: 43.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001534/3.073, allocations: 194.8 kB / 0.8182 GB, free: 43.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000791/3.074, allocations: 81.09 kB / 0.8182 GB, free: 43.58 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.009467/3.083, allocations: 3.349 MB / 0.8215 GB, free: 40.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.92e-07/3.083, allocations: 0 / 0.8215 GB, free: 40.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01209/3.095, allocations: 1.705 MB / 0.8232 GB, free: 38.55 MB / 394.7 MB 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05933/3.155, allocations: 19.08 MB / 0.8418 GB, free: 19.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.3872/3.542, allocations: 10.44 MB / 0.852 GB, free: 102.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.965e-05/3.542, allocations: 1.031 kB / 0.852 GB, free: 102.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01547/3.557, allocations: 3.94 MB / 0.8558 GB, free: 102 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007779/3.565, allocations: 0.5707 MB / 0.8564 GB, free: 102 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1316/3.697, allocations: 150.5 MB / 1.003 GB, free: 10.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01788/3.715, allocations: 4.755 MB / 1.008 GB, free: 9.266 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01249/3.727, allocations: 2.95 MB / 1.011 GB, free: 6.895 MB / 442.7 MB Notification: Performance of SimCode: time 2.134e-06/3.727, allocations: 0 / 1.011 GB, free: 6.895 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.117/9.845, allocations: 178.4 MB / 1.185 GB, free: 119.8 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat