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.Force.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.Force,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.951/1.951, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004417/0.0004417, allocations: 16 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1035, allocations: 48.7 MB / 331.4 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4739/0.5774, allocations: 94.7 MB / 426.1 MB, free: 6.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/0.5778, allocations: 79.95 kB / 426.1 MB, free: 6.172 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8759/1.454, allocations: 128.6 MB / 0.5417 GB, free: 84.56 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.966e-06/1.454, allocations: 0 / 0.5417 GB, free: 84.56 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000455/1.454, allocations: 137.1 kB / 0.5418 GB, free: 84.55 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2316 * Number of variables: 2316 Notification: Performance of Generate backend data structure: time 0.03468/1.489, allocations: 7.072 MB / 0.5487 GB, free: 79.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.988e-05/1.489, allocations: 9.375 kB / 0.5488 GB, free: 79.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00648/1.496, allocations: 1.153 MB / 0.5499 GB, free: 79.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05282/1.548, allocations: 7.115 MB / 0.5568 GB, free: 75.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02755/1.576, allocations: 7.408 MB / 0.5641 GB, free: 68.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006033/1.577, allocations: 493.9 kB / 0.5645 GB, free: 67.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003763/1.581, allocations: 0.6473 MB / 0.5652 GB, free: 67.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04954/1.63, allocations: 16.28 MB / 0.5811 GB, free: 49.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000444/1.631, allocations: 91.11 kB / 0.5812 GB, free: 49.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003189/1.634, allocations: 323.8 kB / 0.5815 GB, free: 49.28 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003422/1.637, allocations: 1.537 MB / 0.583 GB, free: 47.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04756/1.685, allocations: 13.33 MB / 0.596 GB, free: 34.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5372/2.222, allocations: 72.45 MB / 0.6667 GB, free: 42.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03434/2.257, allocations: 7.485 MB / 0.674 GB, free: 42.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03149/2.288, allocations: 9.668 MB / 0.6835 GB, free: 40.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.869e-05/2.288, allocations: 65.41 kB / 0.6835 GB, free: 40.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=273): time 7.584e-06/2.288, allocations: 0 / 0.6835 GB, free: 40.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=315): time 0.1546/2.443, allocations: 31.94 MB / 0.7147 GB, free: 32.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001563/2.443, allocations: 243.5 kB / 0.715 GB, free: 32.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02393/2.467, allocations: 6.074 MB / 0.7209 GB, free: 30.35 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00122/2.468, allocations: 71.62 kB / 0.721 GB, free: 30.28 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006735/2.475, allocations: 4.447 MB / 0.7253 GB, free: 26.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003046/2.478, allocations: 1.192 MB / 0.7265 GB, free: 25.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002281/2.481, allocations: 180.8 kB / 0.7266 GB, free: 25.72 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001411/2.482, allocations: 0.6833 MB / 0.7273 GB, free: 25.25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01437/2.496, allocations: 3.551 MB / 0.7308 GB, free: 24.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01889/2.515, allocations: 8.677 MB / 0.7393 GB, free: 16.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01809/2.534, allocations: 5.45 MB / 0.7446 GB, free: 13.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002876/2.534, allocations: 52 kB / 0.7446 GB, free: 13.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.05234/2.586, allocations: 13.25 MB / 0.7576 GB, free: 2.426 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001416/2.586, allocations: 87.28 kB / 0.7577 GB, free: 2.344 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003209/2.587, allocations: 180 kB / 0.7578 GB, free: 2.168 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007276/2.594, allocations: 1.681 MB / 0.7595 GB, free: 0.9219 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01425/2.608, allocations: 2.114 MB / 0.7615 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03625/2.645, allocations: 11.54 MB / 0.7728 GB, free: 4.773 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01469/2.659, allocations: 0.5344 MB / 0.7733 GB, free: 4.324 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002673/2.662, allocations: 0.5249 MB / 0.7738 GB, free: 3.816 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 824 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1084): * Single equations (assignments): 1079 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 22,(2,100.0%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01114/2.673, allocations: 3.144 MB / 0.7769 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002016/2.675, allocations: 0.5784 MB / 0.7775 GB, free: 344 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02481/2.7, allocations: 6.802 MB / 0.7841 GB, free: 9.504 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.004e-05/2.7, allocations: 33.72 kB / 0.7841 GB, free: 9.473 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.336e-05/2.701, allocations: 8 kB / 0.7842 GB, free: 9.465 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001035/2.701, allocations: 15.95 kB / 0.7842 GB, free: 9.449 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05502/2.756, allocations: 15.2 MB / 0.799 GB, free: 10.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.089e-05/2.756, allocations: 7.984 kB / 0.799 GB, free: 10.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006288/2.762, allocations: 0.5894 MB / 0.7996 GB, free: 9.633 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007226/2.769, allocations: 1.401 MB / 0.801 GB, free: 8.227 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001009/2.77, allocations: 59.98 kB / 0.801 GB, free: 8.168 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02637/2.797, allocations: 10.73 MB / 0.8115 GB, free: 13.18 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-05/2.797, allocations: 11.98 kB / 0.8115 GB, free: 13.17 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03476/2.832, allocations: 11.92 MB / 0.8231 GB, free: 1.02 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.4069/3.239, allocations: 1.142 MB / 0.8243 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002717/3.241, allocations: 55.73 kB / 0.8243 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006316/3.248, allocations: 213.4 kB / 0.8245 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001517/3.249, allocations: 192.8 kB / 0.8247 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008483/3.25, allocations: 83.44 kB / 0.8248 GB, free: 142.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01417/3.264, allocations: 4.361 MB / 0.829 GB, free: 142.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.81e-07/3.264, allocations: 0 / 0.829 GB, free: 142.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01319/3.278, allocations: 1.631 MB / 0.8306 GB, free: 142.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (260): * Single equations (assignments): 255 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 17,(4,75.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03485/3.313, allocations: 13.29 MB / 0.8436 GB, free: 139.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02206/3.335, allocations: 8.737 MB / 0.8522 GB, free: 139.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/3.335, allocations: 3.531 kB / 0.8522 GB, free: 139.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009994/3.345, allocations: 3.456 MB / 0.8555 GB, free: 138.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006921/3.352, allocations: 0.689 MB / 0.8562 GB, free: 138.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5192/3.871, allocations: 190 MB / 1.042 GB, free: 113.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01252/3.884, allocations: 4.93 MB / 1.047 GB, free: 112.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00887/3.893, allocations: 3.221 MB / 1.05 GB, free: 112.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.112e-06/3.893, allocations: 0 / 1.05 GB, free: 112.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.926/9.818, allocations: 186 MB / 1.231 GB, free: 122.4 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Force_res.mat does not exist to compare? outputFormat=mat