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.379/2.379, allocations: 235 MB / 248 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.974e-05/2.977e-05, allocations: 0 / 309.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4338/0.4339, allocations: 54.86 MB / 364.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1916/0.6256, allocations: 102.9 MB / 467.5 MB, free: 9.574 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003889/0.626, allocations: 71.97 kB / 467.6 MB, free: 9.504 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.013/1.639, allocations: 126.5 MB / 0.5801 GB, free: 103.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.639, allocations: 0 / 0.5801 GB, free: 103.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003956/1.64, allocations: 117.7 kB / 0.5802 GB, free: 103.1 MB / 458.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.02695/1.667, allocations: 6.332 MB / 0.5864 GB, free: 100.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/1.667, allocations: 7.625 kB / 0.5864 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006751/1.673, allocations: 1.316 MB / 0.5877 GB, free: 99.61 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06069/1.734, allocations: 8.315 MB / 0.5958 GB, free: 95.45 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02835/1.763, allocations: 7.371 MB / 0.603 GB, free: 89.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006101/1.763, allocations: 453.1 kB / 0.6035 GB, free: 88.96 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004048/1.767, allocations: 0.5825 MB / 0.604 GB, free: 88.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04883/1.816, allocations: 15.61 MB / 0.6193 GB, free: 71.78 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005529/1.817, allocations: 75.31 kB / 0.6194 GB, free: 71.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004073/1.821, allocations: 286.2 kB / 0.6196 GB, free: 71.47 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003494/1.824, allocations: 1.609 MB / 0.6212 GB, free: 69.86 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04067/1.865, allocations: 13.8 MB / 0.6347 GB, free: 56.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1086/1.974, allocations: 64.02 MB / 0.6972 GB, free: 6.516 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3642/2.338, allocations: 6.402 MB / 0.7034 GB, free: 108.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008605/2.347, allocations: 3.532 MB / 0.7069 GB, free: 108.7 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04067/2.388, allocations: 14.44 MB / 0.721 GB, free: 105.3 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.454e-05/2.388, allocations: 67.39 kB / 0.7211 GB, free: 105.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 7.835e-06/2.388, allocations: 0.5156 kB / 0.7211 GB, free: 105.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.1568/2.544, allocations: 29.77 MB / 0.7501 GB, free: 98.68 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/2.545, allocations: 215.2 kB / 0.7503 GB, free: 98.46 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01214/2.557, allocations: 4.769 MB / 0.755 GB, free: 96.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000949/2.558, allocations: 75.66 kB / 0.7551 GB, free: 96.66 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003864/2.562, allocations: 4.289 MB / 0.7593 GB, free: 93.28 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002109/2.564, allocations: 1.249 MB / 0.7605 GB, free: 92.37 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001501/2.565, allocations: 176 kB / 0.7606 GB, free: 92.23 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007792/2.566, allocations: 0.6844 MB / 0.7613 GB, free: 91.76 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01111/2.577, allocations: 4.488 MB / 0.7657 GB, free: 90.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01517/2.593, allocations: 9.421 MB / 0.7749 GB, free: 81.86 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01517/2.608, allocations: 6.41 MB / 0.7812 GB, free: 79.75 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002581/2.608, allocations: 50.62 kB / 0.7812 GB, free: 79.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.0695/2.678, allocations: 18.39 MB / 0.7992 GB, free: 66.27 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001358/2.678, allocations: 80.94 kB / 0.7992 GB, free: 66.19 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002674/2.678, allocations: 172 kB / 0.7994 GB, free: 66.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03895/2.717, allocations: 5.622 MB / 0.8049 GB, free: 62.63 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01361/2.731, allocations: 2.063 MB / 0.8069 GB, free: 60.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04812/2.779, allocations: 23.63 MB / 0.83 GB, free: 37.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01178/2.791, allocations: 0.5423 MB / 0.8305 GB, free: 37.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002135/2.793, allocations: 0.5076 MB / 0.831 GB, free: 36.61 MB / 474.7 MB 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 () * 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.002127/2.795, allocations: 0.7487 MB / 0.8317 GB, free: 35.85 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001446/2.797, allocations: 0.4935 MB / 0.8322 GB, free: 35.35 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05143/2.848, allocations: 12.35 MB / 0.8443 GB, free: 22.94 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001219/2.848, allocations: 52 kB / 0.8443 GB, free: 22.89 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.132e-05/2.848, allocations: 8 kB / 0.8443 GB, free: 22.88 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.316e-05/2.848, allocations: 19.94 kB / 0.8443 GB, free: 22.86 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08058/2.929, allocations: 23.97 MB / 0.8678 GB, free: 14.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-05/2.929, allocations: 4 kB / 0.8678 GB, free: 14.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006058/2.935, allocations: 0.5694 MB / 0.8683 GB, free: 13.85 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03603/2.971, allocations: 4.654 MB / 0.8729 GB, free: 9.184 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009448/2.972, allocations: 56.69 kB / 0.8729 GB, free: 9.133 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3986/3.371, allocations: 18.91 MB / 0.8914 GB, free: 127.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.264e-05/3.371, allocations: 12.75 kB / 0.8914 GB, free: 127.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06003/3.431, allocations: 17.38 MB / 0.9084 GB, free: 124.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004692/3.436, allocations: 1.218 MB / 0.9096 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001894/3.438, allocations: 58.3 kB / 0.9096 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006274/3.444, allocations: 249.7 kB / 0.9098 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001543/3.445, allocations: 191.9 kB / 0.91 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004856/3.446, allocations: 90.67 kB / 0.9101 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008451/3.454, allocations: 3.312 MB / 0.9133 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.092e-06/3.454, allocations: 0 / 0.9133 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01127/3.466, allocations: 1.707 MB / 0.915 GB, free: 122.9 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 () * 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.06137/3.527, allocations: 19.1 MB / 0.9337 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02414/3.551, allocations: 10.4 MB / 0.9438 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/3.551, allocations: 3.375 kB / 0.9438 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009422/3.561, allocations: 3.943 MB / 0.9477 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005257/3.566, allocations: 0.5808 MB / 0.9482 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04785/3.614, allocations: 16.28 MB / 0.9641 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01032/3.624, allocations: 4.756 MB / 0.9688 GB, free: 96.18 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007625/3.632, allocations: 2.968 MB / 0.9717 GB, free: 93.42 MB / 0.4948 GB Notification: Performance of SimCode: time 3.106e-06/3.632, allocations: 0 / 0.9717 GB, free: 93.42 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.665/9.297, allocations: 180.5 MB / 1.148 GB, free: 93.51 MB / 0.4948 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