Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.512/2.512, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.011e-05/3.024e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3495, allocations: 54.85 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1816/0.5312, allocations: 98.82 MB / 456.9 MB, free: 11.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.5316, allocations: 71.97 kB / 457 MB, free: 11.89 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8188/1.35, allocations: 134.1 MB / 0.5773 GB, free: 5.746 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.355e-06/1.35, allocations: 0 / 0.5773 GB, free: 5.746 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005307/1.351, allocations: 139.9 kB / 0.5774 GB, free: 5.609 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: 2367 * Number of variables: 2367 Notification: Performance of Generate backend data structure: time 0.02911/1.38, allocations: 6.627 MB / 0.5839 GB, free: 14.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/1.38, allocations: 19.97 kB / 0.5839 GB, free: 14.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07119/1.451, allocations: 9.491 MB / 0.5932 GB, free: 5.371 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03366/1.485, allocations: 8.718 MB / 0.6017 GB, free: 12.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005615/1.486, allocations: 224 kB / 0.6019 GB, free: 12.35 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003753/1.49, allocations: 415.9 kB / 0.6023 GB, free: 11.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02741/1.517, allocations: 9.044 MB / 0.6112 GB, free: 2.895 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04304/1.56, allocations: 14.06 MB / 0.6249 GB, free: 3.375 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005662/1.561, allocations: 103 kB / 0.625 GB, free: 3.273 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003091/1.564, allocations: 44 kB / 0.625 GB, free: 3.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003843/1.568, allocations: 1.452 MB / 0.6264 GB, free: 1.773 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4639/2.032, allocations: 67.6 MB / 0.6925 GB, free: 36.74 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008626/2.04, allocations: 4.61 MB / 0.697 GB, free: 36.05 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005773/2.046, allocations: 2.97 MB / 0.6999 GB, free: 36.01 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002739/2.047, allocations: 45.16 kB / 0.6999 GB, free: 36 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.441e-05/2.047, allocations: 65.61 kB / 0.7 GB, free: 35.96 MB / 458.7 MB Notification: Performance of pre-optimization done (n=242): time 6.552e-06/2.047, allocations: 3.469 kB / 0.7 GB, free: 35.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=263): time 0.07649/2.123, allocations: 25.59 MB / 0.725 GB, free: 25.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.715e-05/2.123, allocations: 262.1 kB / 0.7252 GB, free: 25.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01102/2.134, allocations: 4.789 MB / 0.7299 GB, free: 23.79 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006688/2.135, allocations: 25.7 kB / 0.7299 GB, free: 23.76 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004101/2.139, allocations: 4.802 MB / 0.7346 GB, free: 20.25 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001668/2.141, allocations: 0.9841 MB / 0.7356 GB, free: 19.52 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/2.142, allocations: 0 / 0.7356 GB, free: 19.52 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000565/2.142, allocations: 0.6804 MB / 0.7362 GB, free: 19.05 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00659/2.149, allocations: 2.697 MB / 0.7389 GB, free: 18.08 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01014/2.159, allocations: 7.973 MB / 0.7467 GB, free: 9.977 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/2.17, allocations: 4.59 MB / 0.7511 GB, free: 7.766 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002583/2.17, allocations: 56 kB / 0.7512 GB, free: 7.711 MB / 458.7 MB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.02876/2.199, allocations: 9.917 MB / 0.7609 GB, free: 15.29 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001756/2.199, allocations: 84 kB / 0.761 GB, free: 15.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003305/2.2, allocations: 188 kB / 0.7611 GB, free: 15.03 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003273/2.203, allocations: 0.8078 MB / 0.7619 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01331/2.216, allocations: 1.992 MB / 0.7639 GB, free: 12.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.015/2.231, allocations: 8.017 MB / 0.7717 GB, free: 4.996 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/2.242, allocations: 295.9 kB / 0.772 GB, free: 4.746 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002685/2.244, allocations: 0.5255 MB / 0.7725 GB, free: 4.234 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 861 * Number of states: 0 () * Number of discrete variables: 54 (worldForce2.color[3],worldForce2.color[2],worldForce2.color[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],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.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],fixed1.color[3],fixed1.color[2],fixed1.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1069): * Single equations (assignments): 1063 * 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%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002817/2.247, allocations: 0.5747 MB / 0.7731 GB, free: 3.66 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01233/2.259, allocations: 4.26 MB / 0.7772 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001805/2.261, allocations: 0.5091 MB / 0.7777 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/2.274, allocations: 4.064 MB / 0.7817 GB, free: 12.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.873e-05/2.274, allocations: 30.81 kB / 0.7817 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.433e-05/2.274, allocations: 8 kB / 0.7817 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.495e-05/2.274, allocations: 10.88 kB / 0.7817 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03141/2.305, allocations: 9.972 MB / 0.7915 GB, free: 3.961 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.692e-05/2.305, allocations: 3.953 kB / 0.7915 GB, free: 3.957 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004294/2.31, allocations: 420.4 kB / 0.7919 GB, free: 3.617 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002548/2.312, allocations: 500 kB / 0.7923 GB, free: 3.242 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004509/2.313, allocations: 11.38 kB / 0.7924 GB, free: 3.234 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/2.326, allocations: 7.121 MB / 0.7993 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/2.326, allocations: 0 / 0.7993 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01851/2.344, allocations: 7.412 MB / 0.8065 GB, free: 5.805 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00373/2.348, allocations: 0.8804 MB / 0.8074 GB, free: 4.969 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001305/2.349, allocations: 3.953 kB / 0.8074 GB, free: 4.965 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003852/2.353, allocations: 110.1 kB / 0.8075 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007202/2.354, allocations: 151.5 kB / 0.8077 GB, free: 4.805 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002931/2.354, allocations: 74.39 kB / 0.8077 GB, free: 4.742 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009246/2.363, allocations: 3.242 MB / 0.8109 GB, free: 1.949 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.62e-07/2.364, allocations: 4 kB / 0.8109 GB, free: 1.945 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01164/2.375, allocations: 1.307 MB / 0.8122 GB, free: 0.6445 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 212 * 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%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3745/2.75, allocations: 8.235 MB / 0.8202 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0153/2.765, allocations: 6.809 MB / 0.8269 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/2.765, allocations: 2.625 kB / 0.8269 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00483/2.77, allocations: 2.34 MB / 0.8292 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005692/2.776, allocations: 0.5866 MB / 0.8297 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04811/2.824, allocations: 14.59 MB / 0.844 GB, free: 110 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01177/2.836, allocations: 5.05 MB / 0.8489 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007879/2.844, allocations: 3.279 MB / 0.8521 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of SimCode: time 2.165e-06/2.844, allocations: 0 / 0.8521 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.672/8.516, allocations: 207.4 MB / 1.055 GB, free: 126.4 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat