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/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.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.271/2.271, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004355/0.0004355, allocations: 16 kB / 314.5 MB, free: 9.453 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.337, allocations: 54.85 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1789/0.5159, allocations: 101.2 MB / 470.5 MB, free: 5.406 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.5163, allocations: 87.88 kB / 470.6 MB, free: 5.32 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.742/1.258, allocations: 103.2 MB / 0.5604 GB, free: 11.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.476e-06/1.258, allocations: 3.938 kB / 0.5604 GB, free: 11.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000471/1.259, allocations: 104 kB / 0.5605 GB, free: 11.07 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.03031/1.289, allocations: 5.696 MB / 0.566 GB, free: 5.301 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.895e-05/1.289, allocations: 8.031 kB / 0.5661 GB, free: 5.293 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005463/1.295, allocations: 1.016 MB / 0.567 GB, free: 4.266 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05303/1.348, allocations: 6.873 MB / 0.5738 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0271/1.375, allocations: 7.524 MB / 0.5811 GB, free: 5.766 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005415/1.376, allocations: 373.9 kB / 0.5815 GB, free: 5.398 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00286/1.378, allocations: 0.4997 MB / 0.5819 GB, free: 4.898 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04086/1.419, allocations: 12.34 MB / 0.594 GB, free: 7.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006081/1.42, allocations: 71.31 kB / 0.5941 GB, free: 7.359 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003523/1.424, allocations: 239.9 kB / 0.5943 GB, free: 7.125 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004398/1.428, allocations: 1.141 MB / 0.5954 GB, free: 5.984 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03541/1.463, allocations: 10.28 MB / 0.6054 GB, free: 11.68 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.49/1.954, allocations: 55.61 MB / 0.6598 GB, free: 68.31 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03325/1.987, allocations: 5.71 MB / 0.6653 GB, free: 67.64 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02617/2.013, allocations: 8.807 MB / 0.6739 GB, free: 66.26 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.352e-05/2.013, allocations: 63.58 kB / 0.674 GB, free: 66.22 MB / 474.7 MB Notification: Performance of pre-optimization done (n=206): time 6.412e-06/2.013, allocations: 0 / 0.674 GB, free: 66.22 MB / 474.7 MB Notification: Performance of matching and sorting (n=265): time 0.2159/2.229, allocations: 35.99 MB / 0.7091 GB, free: 62.57 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/2.229, allocations: 209.5 kB / 0.7093 GB, free: 62.35 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008882/2.238, allocations: 4.2 MB / 0.7134 GB, free: 61.98 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007351/2.239, allocations: 62.89 kB / 0.7135 GB, free: 61.95 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003048/2.242, allocations: 3.447 MB / 0.7169 GB, free: 59.65 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001616/2.244, allocations: 0.9746 MB / 0.7178 GB, free: 58.94 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007632/2.244, allocations: 132.4 kB / 0.7179 GB, free: 58.83 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000396/2.245, allocations: 0.5943 MB / 0.7185 GB, free: 58.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007301/2.252, allocations: 2.995 MB / 0.7214 GB, free: 57.32 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01036/2.263, allocations: 6.797 MB / 0.7281 GB, free: 51.18 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/2.273, allocations: 4.421 MB / 0.7324 GB, free: 49.59 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001565/2.273, allocations: 35.78 kB / 0.7324 GB, free: 49.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.04161/2.315, allocations: 12.87 MB / 0.745 GB, free: 39.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/2.315, allocations: 60.19 kB / 0.7451 GB, free: 39.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002316/2.315, allocations: 140 kB / 0.7452 GB, free: 39.51 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02005/2.335, allocations: 4.092 MB / 0.7492 GB, free: 36.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008311/2.343, allocations: 1.411 MB / 0.7506 GB, free: 35.37 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05566/2.399, allocations: 26.88 MB / 0.7768 GB, free: 11.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008371/2.408, allocations: 399.4 kB / 0.7772 GB, free: 10.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001752/2.409, allocations: 402.4 kB / 0.7776 GB, free: 10.51 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 754 * 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.007192/2.417, allocations: 2.466 MB / 0.78 GB, free: 8.035 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001266/2.418, allocations: 442.3 kB / 0.7804 GB, free: 7.598 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02781/2.446, allocations: 8.121 MB / 0.7883 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.688e-05/2.446, allocations: 29.64 kB / 0.7884 GB, free: 15.42 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.354e-05/2.446, allocations: 12 kB / 0.7884 GB, free: 15.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.627e-05/2.446, allocations: 11.95 kB / 0.7884 GB, free: 15.39 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06692/2.513, allocations: 16.71 MB / 0.8047 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.998e-05/2.513, allocations: 4 kB / 0.8047 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0038/2.517, allocations: 296.2 kB / 0.805 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02804/2.545, allocations: 3.776 MB / 0.8087 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008237/2.546, allocations: 52 kB / 0.8087 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06548/2.611, allocations: 25.64 MB / 0.8338 GB, free: 460 kB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/2.611, allocations: 8 kB / 0.8338 GB, free: 452 kB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04718/2.658, allocations: 12.64 MB / 0.8461 GB, free: 3.508 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003718/2.662, allocations: 0.9482 MB / 0.847 GB, free: 2.535 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001685/2.664, allocations: 56.05 kB / 0.8471 GB, free: 2.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004713/2.669, allocations: 155.8 kB / 0.8472 GB, free: 2.328 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001338/2.67, allocations: 190.1 kB / 0.8474 GB, free: 2.141 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003682/2.671, allocations: 79.52 kB / 0.8475 GB, free: 2.066 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.39/3.061, allocations: 2.987 MB / 0.8504 GB, free: 153.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.663e-06/3.061, allocations: 0.5312 kB / 0.8504 GB, free: 153.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01014/3.071, allocations: 1.427 MB / 0.8518 GB, free: 153.8 MB / 0.5261 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 (161): * Single equations (assignments): 155 * 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.03798/3.109, allocations: 14.42 MB / 0.8659 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02126/3.13, allocations: 8.129 MB / 0.8738 GB, free: 150.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/3.13, allocations: 0 / 0.8738 GB, free: 150.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009524/3.14, allocations: 3.464 MB / 0.8772 GB, free: 149.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005166/3.145, allocations: 0.5444 MB / 0.8777 GB, free: 149.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1459/3.291, allocations: 141.2 MB / 1.016 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00934/3.3, allocations: 4.038 MB / 1.02 GB, free: 30.09 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006/3.306, allocations: 2.433 MB / 1.022 GB, free: 28.12 MB / 0.5261 GB Notification: Performance of SimCode: time 1.413e-06/3.306, allocations: 0 / 1.022 GB, free: 28.12 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.346/8.653, allocations: 166.7 MB / 1.185 GB, free: 81.08 MB / 0.5261 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