Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00043/0.0004301, allocations: 20 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.397/0.3975, allocations: 54.85 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1879/0.5854, allocations: 103 MB / 472.3 MB, free: 3.488 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.5858, allocations: 87.89 kB / 472.4 MB, free: 3.402 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8059/1.392, allocations: 126.3 MB / 0.5847 GB, free: 1.922 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.392, allocations: 4 kB / 0.5847 GB, free: 1.918 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004123/1.392, allocations: 112 kB / 0.5848 GB, free: 1.809 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: 2239 * Number of variables: 2239 Notification: Performance of Generate backend data structure: time 0.03003/1.422, allocations: 6.775 MB / 0.5915 GB, free: 10.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.24e-05/1.422, allocations: 8.031 kB / 0.5915 GB, free: 10.95 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006647/1.429, allocations: 1.316 MB / 0.5927 GB, free: 9.617 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06234/1.491, allocations: 8.306 MB / 0.6009 GB, free: 1.285 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02946/1.521, allocations: 7.408 MB / 0.6081 GB, free: 9.816 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007583/1.522, allocations: 447.8 kB / 0.6085 GB, free: 9.379 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004091/1.526, allocations: 0.5935 MB / 0.6091 GB, free: 8.785 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05199/1.578, allocations: 15.72 MB / 0.6244 GB, free: 7.906 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000516/1.578, allocations: 79.23 kB / 0.6245 GB, free: 7.828 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003614/1.582, allocations: 291.8 kB / 0.6248 GB, free: 7.543 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004071/1.586, allocations: 1.604 MB / 0.6264 GB, free: 5.938 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04672/1.633, allocations: 14.01 MB / 0.64 GB, free: 7.898 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4693/2.102, allocations: 64.02 MB / 0.7026 GB, free: 51.71 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02253/2.125, allocations: 6.465 MB / 0.7089 GB, free: 50.47 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03489/2.16, allocations: 14.43 MB / 0.723 GB, free: 46.88 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.152e-05/2.16, allocations: 65.78 kB / 0.723 GB, free: 46.84 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 7.073e-06/2.16, allocations: 6.312 kB / 0.723 GB, free: 46.84 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.2653/2.425, allocations: 42.34 MB / 0.7644 GB, free: 35.19 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/2.425, allocations: 210 kB / 0.7646 GB, free: 34.94 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01193/2.437, allocations: 4.821 MB / 0.7693 GB, free: 31.01 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001071/2.439, allocations: 76 kB / 0.7694 GB, free: 30.93 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00413/2.443, allocations: 4.288 MB / 0.7736 GB, free: 27.39 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002297/2.445, allocations: 1.253 MB / 0.7748 GB, free: 26.29 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001441/2.446, allocations: 172 kB / 0.7749 GB, free: 26.12 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007205/2.447, allocations: 0.6872 MB / 0.7756 GB, free: 25.52 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01086/2.458, allocations: 4.563 MB / 0.7801 GB, free: 21.6 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01473/2.473, allocations: 9.503 MB / 0.7894 GB, free: 10.66 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01431/2.487, allocations: 6.447 MB / 0.7957 GB, free: 4.988 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001799/2.488, allocations: 48 kB / 0.7957 GB, free: 4.941 MB / 474.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.07384/2.561, allocations: 18.55 MB / 0.8138 GB, free: 4.883 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000158/2.562, allocations: 80.94 kB / 0.8139 GB, free: 4.805 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002968/2.562, allocations: 180 kB / 0.8141 GB, free: 4.629 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04099/2.603, allocations: 5.631 MB / 0.8196 GB, free: 14.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01389/2.617, allocations: 2.059 MB / 0.8216 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4151/3.032, allocations: 24.3 MB / 0.8453 GB, free: 111 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01113/3.043, allocations: 0.5342 MB / 0.8458 GB, free: 111 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002387/3.046, allocations: 0.5092 MB / 0.8463 GB, free: 111 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.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 (1058): * Single equations (assignments): 1050 * 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.008924/3.055, allocations: 3.087 MB / 0.8493 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001551/3.056, allocations: 0.4919 MB / 0.8498 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05287/3.109, allocations: 12.43 MB / 0.862 GB, free: 110.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001249/3.109, allocations: 55.06 kB / 0.862 GB, free: 110.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.286e-05/3.109, allocations: 11.45 kB / 0.862 GB, free: 110.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-05/3.109, allocations: 21.48 kB / 0.862 GB, free: 110.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08403/3.193, allocations: 24.04 MB / 0.8855 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.868e-05/3.194, allocations: 3.844 kB / 0.8855 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005658/3.199, allocations: 0.5799 MB / 0.8861 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03412/3.233, allocations: 4.643 MB / 0.8906 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009598/3.234, allocations: 64 kB / 0.8907 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04076/3.275, allocations: 19.58 MB / 0.9098 GB, free: 93.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.919e-06/3.275, allocations: 5.844 kB / 0.9098 GB, free: 93.42 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05889/3.334, allocations: 17.49 MB / 0.9269 GB, free: 86.27 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004592/3.339, allocations: 1.215 MB / 0.9281 GB, free: 85.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002203/3.341, allocations: 58.84 kB / 0.9281 GB, free: 85.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006234/3.347, allocations: 252.5 kB / 0.9284 GB, free: 84.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001557/3.349, allocations: 196.4 kB / 0.9286 GB, free: 84.86 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005299/3.349, allocations: 84 kB / 0.9286 GB, free: 84.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008977/3.358, allocations: 3.365 MB / 0.9319 GB, free: 82.04 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.62e-07/3.359, allocations: 0 / 0.9319 GB, free: 82.04 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01151/3.37, allocations: 1.704 MB / 0.9336 GB, free: 80.34 MB / 0.4948 GB 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 (254): * Single equations (assignments): 246 * 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.05961/3.43, allocations: 19.2 MB / 0.9523 GB, free: 64.21 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02345/3.453, allocations: 10.52 MB / 0.9626 GB, free: 54.55 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/3.453, allocations: 0 / 0.9626 GB, free: 54.55 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009106/3.462, allocations: 4.005 MB / 0.9665 GB, free: 50.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005077/3.468, allocations: 0.5681 MB / 0.9671 GB, free: 50.04 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4628/3.93, allocations: 150.2 MB / 1.114 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.013/3.943, allocations: 4.764 MB / 1.118 GB, free: 38.85 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007968/3.951, allocations: 2.961 MB / 1.121 GB, free: 38.84 MB / 0.5105 GB Notification: Performance of SimCode: time 1.653e-06/3.951, allocations: 0 / 1.121 GB, free: 38.84 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.732/9.683, allocations: 179 MB / 1.296 GB, free: 131.7 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat