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.SphericalAndUniversal.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.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.391/2.391, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.634e-05/2.672e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3403, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1774/0.5178, allocations: 100.4 MB / 458.5 MB, free: 10.31 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.5181, allocations: 71.97 kB / 458.6 MB, free: 10.24 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6636/1.182, allocations: 101 MB / 0.5465 GB, free: 21.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.024e-06/1.182, allocations: 0 / 0.5465 GB, free: 21.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003999/1.182, allocations: 99.98 kB / 0.5466 GB, free: 21.42 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: 1726 * Number of variables: 1726 Notification: Performance of Generate backend data structure: time 0.021/1.203, allocations: 5.206 MB / 0.5517 GB, free: 16.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/1.203, allocations: 8.031 kB / 0.5517 GB, free: 16.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0482/1.251, allocations: 6.888 MB / 0.5584 GB, free: 9.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0251/1.277, allocations: 7.473 MB / 0.5657 GB, free: 1.672 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003055/1.277, allocations: 160 kB / 0.5658 GB, free: 1.516 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002483/1.279, allocations: 299.8 kB / 0.5661 GB, free: 1.223 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0188/1.298, allocations: 7.044 MB / 0.573 GB, free: 10.17 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02864/1.327, allocations: 10.79 MB / 0.5835 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003076/1.327, allocations: 75.34 kB / 0.5836 GB, free: 14.19 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001252/1.329, allocations: 32 kB / 0.5836 GB, free: 14.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002486/1.331, allocations: 1.141 MB / 0.5848 GB, free: 13.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4256/1.757, allocations: 53.95 MB / 0.6374 GB, free: 66.76 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007612/1.764, allocations: 4.33 MB / 0.6417 GB, free: 66.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004701/1.769, allocations: 2.738 MB / 0.6444 GB, free: 66.06 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009359/1.77, allocations: 0.559 MB / 0.6449 GB, free: 65.59 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/1.77, allocations: 61.58 kB / 0.645 GB, free: 65.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=213): time 6.994e-06/1.77, allocations: 7.25 kB / 0.645 GB, free: 65.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=272): time 0.1565/1.927, allocations: 27.01 MB / 0.6713 GB, free: 62.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/1.927, allocations: 210.7 kB / 0.6715 GB, free: 62.51 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007541/1.934, allocations: 3.587 MB / 0.675 GB, free: 62.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007089/1.935, allocations: 27.77 kB / 0.6751 GB, free: 62.11 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003011/1.938, allocations: 3.536 MB / 0.6785 GB, free: 59.71 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001526/1.94, allocations: 0.9748 MB / 0.6795 GB, free: 58.98 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008399/1.941, allocations: 0 / 0.6795 GB, free: 58.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004228/1.941, allocations: 0.602 MB / 0.6801 GB, free: 58.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006233/1.947, allocations: 2.882 MB / 0.6829 GB, free: 57.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009007/1.956, allocations: 6.774 MB / 0.6895 GB, free: 51.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009174/1.966, allocations: 4.375 MB / 0.6938 GB, free: 49.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000148/1.966, allocations: 39.22 kB / 0.6938 GB, free: 49.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=907) (initialization): time 0.03885/2.005, allocations: 11.99 MB / 0.7055 GB, free: 44.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.559e-05/2.005, allocations: 64 kB / 0.7056 GB, free: 44.15 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001625/2.005, allocations: 136.6 kB / 0.7057 GB, free: 44.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01965/2.025, allocations: 3.964 MB / 0.7096 GB, free: 41.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008734/2.034, allocations: 1.472 MB / 0.711 GB, free: 39.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05004/2.084, allocations: 24.35 MB / 0.7348 GB, free: 18.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00845/2.092, allocations: 271 kB / 0.735 GB, free: 18.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001816/2.094, allocations: 412.8 kB / 0.7354 GB, free: 17.98 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 39 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (791): * Single equations (assignments): 785 * 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: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.001793/2.096, allocations: 462.9 kB / 0.7359 GB, free: 17.52 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02668/2.122, allocations: 7.857 MB / 0.7436 GB, free: 11.29 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001521/2.124, allocations: 410.7 kB / 0.7439 GB, free: 10.89 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02544/2.15, allocations: 7.751 MB / 0.7515 GB, free: 4.902 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.045e-05/2.15, allocations: 28 kB / 0.7515 GB, free: 4.875 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.643e-05/2.15, allocations: 12 kB / 0.7516 GB, free: 4.863 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-05/2.15, allocations: 19.3 kB / 0.7516 GB, free: 4.859 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05029/2.2, allocations: 15.78 MB / 0.767 GB, free: 6.586 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.521e-05/2.2, allocations: 7.953 kB / 0.767 GB, free: 6.578 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002936/2.203, allocations: 307.5 kB / 0.7673 GB, free: 6.277 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01947/2.223, allocations: 3.669 MB / 0.7709 GB, free: 2.594 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006002/2.223, allocations: 8 kB / 0.7709 GB, free: 2.586 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05285/2.276, allocations: 23.08 MB / 0.7934 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-05/2.276, allocations: 7.984 kB / 0.7934 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03577/2.312, allocations: 12.3 MB / 0.8054 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003538/2.315, allocations: 0.9095 MB / 0.8063 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001217/2.317, allocations: 8 kB / 0.8063 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004169/2.321, allocations: 127.5 kB / 0.8064 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001119/2.322, allocations: 202.1 kB / 0.8066 GB, free: 13.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003419/2.322, allocations: 68 kB / 0.8067 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00619/2.329, allocations: 2.443 MB / 0.8091 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.52e-07/2.329, allocations: 0 / 0.8091 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01002/2.339, allocations: 1.236 MB / 0.8103 GB, free: 9.516 MB / 0.5105 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 (168): * Single equations (assignments): 162 * 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: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.3671/2.706, allocations: 14.1 MB / 0.8241 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01829/2.724, allocations: 7.756 MB / 0.8316 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/2.724, allocations: 3.875 kB / 0.8316 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008287/2.733, allocations: 3.353 MB / 0.8349 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004667/2.737, allocations: 458.7 kB / 0.8354 GB, free: 145.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03767/2.775, allocations: 12.36 MB / 0.8474 GB, free: 143.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008408/2.783, allocations: 4.035 MB / 0.8514 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005403/2.789, allocations: 2.408 MB / 0.8537 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.703e-06/2.789, allocations: 0 / 0.8537 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.969/7.758, allocations: 164.1 MB / 1.014 GB, free: 142.5 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat does not exist to compare? outputFormat=mat