Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.978/1.978, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004489/0.0004489, allocations: 8 kB / 282.7 MB, free: 9.562 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3493, allocations: 48.7 MB / 331.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1697/0.5191, allocations: 95.81 MB / 427.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/0.5195, allocations: 79.95 kB / 427.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9642/1.484, allocations: 151.6 MB / 0.5653 GB, free: 30.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.484, allocations: 0 / 0.5653 GB, free: 30.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005049/1.484, allocations: 151.9 kB / 0.5655 GB, free: 30.23 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2698 * Number of variables: 2698 Notification: Performance of Generate backend data structure: time 0.03283/1.517, allocations: 8.018 MB / 0.5733 GB, free: 22.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/1.517, allocations: 8.031 kB / 0.5733 GB, free: 22.12 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006128/1.523, allocations: 1.343 MB / 0.5746 GB, free: 20.76 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06884/1.592, allocations: 9.623 MB / 0.584 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03069/1.623, allocations: 9.157 MB / 0.5929 GB, free: 1.875 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008015/1.624, allocations: 0.5736 MB / 0.5935 GB, free: 1.301 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004373/1.628, allocations: 0.773 MB / 0.5943 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06389/1.692, allocations: 18.15 MB / 0.612 GB, free: 12.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006645/1.693, allocations: 111 kB / 0.6121 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004107/1.697, allocations: 371.8 kB / 0.6124 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004508/1.702, allocations: 1.695 MB / 0.6141 GB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3732/2.075, allocations: 14.6 MB / 0.6284 GB, free: 65.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1278/2.203, allocations: 80.77 MB / 0.7072 GB, free: 18.74 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02947/2.232, allocations: 7.214 MB / 0.7143 GB, free: 16.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005582/2.233, allocations: 62.72 kB / 0.7143 GB, free: 16.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.88e-05/2.233, allocations: 70.44 kB / 0.7144 GB, free: 16.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=307): time 1.037e-05/2.233, allocations: 3.938 kB / 0.7144 GB, free: 16.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=340): time 0.1372/2.37, allocations: 31.76 MB / 0.7454 GB, free: 2.977 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/2.371, allocations: 294.3 kB / 0.7457 GB, free: 2.656 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01665/2.387, allocations: 6.587 MB / 0.7521 GB, free: 380 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009382/2.388, allocations: 76.36 kB / 0.7522 GB, free: 312 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0089/2.397, allocations: 5.238 MB / 0.7573 GB, free: 12.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002603/2.4, allocations: 1.285 MB / 0.7586 GB, free: 11.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/2.401, allocations: 192 kB / 0.7588 GB, free: 11.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008433/2.402, allocations: 0.7117 MB / 0.7595 GB, free: 10.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01059/2.413, allocations: 3.691 MB / 0.7631 GB, free: 7.488 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02227/2.435, allocations: 9.275 MB / 0.7721 GB, free: 12.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02017/2.455, allocations: 5.726 MB / 0.7777 GB, free: 7.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002558/2.456, allocations: 56 kB / 0.7778 GB, free: 7.465 MB / 458.7 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.05605/2.512, allocations: 13.82 MB / 0.7913 GB, free: 12.04 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001823/2.512, allocations: 88 kB / 0.7913 GB, free: 11.95 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000425/2.512, allocations: 196 kB / 0.7915 GB, free: 11.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006118/2.518, allocations: 1.382 MB / 0.7929 GB, free: 10.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.015/2.534, allocations: 2.24 MB / 0.7951 GB, free: 8.766 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3944/2.928, allocations: 11.52 MB / 0.8063 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01746/2.946, allocations: 0.54 MB / 0.8068 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00304/2.949, allocations: 0.5675 MB / 0.8074 GB, free: 106.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 899 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (1172): * Single equations (assignments): 1166 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01319/2.962, allocations: 3.579 MB / 0.8109 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002664/2.965, allocations: 0.6405 MB / 0.8115 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02443/2.989, allocations: 6.673 MB / 0.818 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.91e-05/2.989, allocations: 39.72 kB / 0.8181 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.458e-05/2.989, allocations: 9.906 kB / 0.8181 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001049/2.989, allocations: 25.81 kB / 0.8181 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04249/3.032, allocations: 15.47 MB / 0.8332 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.951e-05/3.032, allocations: 1.875 kB / 0.8332 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005736/3.038, allocations: 0.584 MB / 0.8338 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004741/3.042, allocations: 1.052 MB / 0.8348 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008707/3.043, allocations: 60.03 kB / 0.8349 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0186/3.062, allocations: 10.51 MB / 0.8451 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/3.062, allocations: 0 / 0.8451 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02779/3.09, allocations: 11.27 MB / 0.8561 GB, free: 96.95 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00456/3.094, allocations: 1.212 MB / 0.8573 GB, free: 96.56 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002743/3.097, allocations: 58.81 kB / 0.8574 GB, free: 96.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009521/3.107, allocations: 197.1 kB / 0.8576 GB, free: 96.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002245/3.109, allocations: 200.5 kB / 0.8578 GB, free: 96.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001354/3.111, allocations: 93.19 kB / 0.8578 GB, free: 96.43 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01438/3.125, allocations: 4.699 MB / 0.8624 GB, free: 94.89 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.42e-07/3.125, allocations: 0 / 0.8624 GB, free: 94.89 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01298/3.138, allocations: 1.792 MB / 0.8642 GB, free: 94.69 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (286): * Single equations (assignments): 280 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02976/3.168, allocations: 12.15 MB / 0.8761 GB, free: 89.18 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0228/3.191, allocations: 9.256 MB / 0.8851 GB, free: 86.28 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/3.191, allocations: 0 / 0.8851 GB, free: 86.28 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01226/3.203, allocations: 3.54 MB / 0.8885 GB, free: 84.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009279/3.212, allocations: 0.818 MB / 0.8893 GB, free: 84.43 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6952/3.908, allocations: 208.5 MB / 1.093 GB, free: 32.68 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01483/3.923, allocations: 5.61 MB / 1.098 GB, free: 31.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01119/3.934, allocations: 3.724 MB / 1.102 GB, free: 31.8 MB / 490.7 MB Notification: Performance of SimCode: time 1.362e-06/3.934, allocations: 0 / 1.102 GB, free: 31.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.197/10.13, allocations: 243 MB / 1.339 GB, free: 0.543 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat