Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.995/1.995, allocations: 209.3 MB / 224.9 MB, free: 1.543 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004702/0.0004699, allocations: 19.92 kB / 282.7 MB, free: 9.664 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1109, allocations: 48.69 MB / 331.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4415/0.5525, allocations: 96.18 MB / 427.5 MB, free: 4.891 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/0.5528, allocations: 74.16 kB / 427.6 MB, free: 4.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8472/1.4, allocations: 126.3 MB / 0.5409 GB, free: 85.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.4, allocations: 0 / 0.5409 GB, free: 85.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000419/1.401, allocations: 117.6 kB / 0.541 GB, free: 85.17 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: 2238 * Number of variables: 2238 Notification: Performance of Generate backend data structure: time 0.0316/1.432, allocations: 6.789 MB / 0.5477 GB, free: 80.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/1.432, allocations: 10.38 kB / 0.5477 GB, free: 80.83 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006236/1.438, allocations: 1.314 MB / 0.549 GB, free: 80.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06021/1.499, allocations: 8.31 MB / 0.5571 GB, free: 75.17 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02676/1.526, allocations: 7.392 MB / 0.5643 GB, free: 67.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005492/1.526, allocations: 456.3 kB / 0.5647 GB, free: 67.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003874/1.53, allocations: 0.5941 MB / 0.5653 GB, free: 66.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04692/1.577, allocations: 15.72 MB / 0.5807 GB, free: 50.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003919/1.577, allocations: 71.34 kB / 0.5807 GB, free: 50.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003203/1.581, allocations: 292.4 kB / 0.581 GB, free: 49.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003376/1.584, allocations: 1.615 MB / 0.5826 GB, free: 48.19 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04041/1.625, allocations: 14 MB / 0.5963 GB, free: 34.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4577/2.082, allocations: 63.99 MB / 0.6587 GB, free: 51.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0244/2.107, allocations: 6.457 MB / 0.6651 GB, free: 50.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03658/2.143, allocations: 14.45 MB / 0.6792 GB, free: 47.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.714e-05/2.144, allocations: 61.31 kB / 0.6792 GB, free: 47.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=289): time 8.326e-06/2.144, allocations: 3.562 kB / 0.6792 GB, free: 47.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.2831/2.427, allocations: 42.35 MB / 0.7206 GB, free: 39.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/2.427, allocations: 217.8 kB / 0.7208 GB, free: 39.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01124/2.438, allocations: 4.82 MB / 0.7255 GB, free: 37.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009576/2.439, allocations: 73.86 kB / 0.7256 GB, free: 37.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003703/2.443, allocations: 4.29 MB / 0.7298 GB, free: 34.35 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002196/2.445, allocations: 1.253 MB / 0.731 GB, free: 33.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00117/2.446, allocations: 175.8 kB / 0.7311 GB, free: 33.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005448/2.447, allocations: 0.6846 MB / 0.7318 GB, free: 32.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01077/2.458, allocations: 4.56 MB / 0.7363 GB, free: 31.04 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01449/2.472, allocations: 9.497 MB / 0.7455 GB, free: 20.11 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01453/2.487, allocations: 6.442 MB / 0.7518 GB, free: 14.47 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001999/2.487, allocations: 52 kB / 0.7519 GB, free: 14.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.0705/2.558, allocations: 18.53 MB / 0.77 GB, free: 13.91 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001665/2.558, allocations: 76 kB / 0.7701 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003519/2.558, allocations: 178.5 kB / 0.7702 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04059/2.599, allocations: 5.637 MB / 0.7757 GB, free: 8.023 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01426/2.613, allocations: 2.055 MB / 0.7777 GB, free: 5.965 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05932/2.672, allocations: 24.3 MB / 0.8015 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01164/2.684, allocations: 0.546 MB / 0.802 GB, free: 12.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00253/2.687, allocations: 0.5019 MB / 0.8025 GB, free: 12.36 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 () * 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.01086/2.698, allocations: 3.091 MB / 0.8055 GB, free: 9.246 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001838/2.699, allocations: 0.4974 MB / 0.806 GB, free: 8.746 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05756/2.757, allocations: 12.42 MB / 0.8181 GB, free: 12.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001474/2.757, allocations: 56.53 kB / 0.8182 GB, free: 12.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.52e-05/2.757, allocations: 8 kB / 0.8182 GB, free: 12.19 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-05/2.757, allocations: 19.94 kB / 0.8182 GB, free: 12.17 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4366/3.194, allocations: 24.04 MB / 0.8417 GB, free: 141.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.842e-05/3.194, allocations: 5.531 kB / 0.8417 GB, free: 141.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005728/3.2, allocations: 0.5735 MB / 0.8423 GB, free: 141.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03407/3.234, allocations: 4.645 MB / 0.8468 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009602/3.235, allocations: 59.03 kB / 0.8468 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04049/3.275, allocations: 19.57 MB / 0.866 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.316e-06/3.275, allocations: 7.375 kB / 0.866 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05783/3.333, allocations: 17.49 MB / 0.883 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004579/3.338, allocations: 1.222 MB / 0.8842 GB, free: 129.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002025/3.34, allocations: 60.61 kB / 0.8843 GB, free: 129.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006204/3.346, allocations: 250.9 kB / 0.8845 GB, free: 129.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001527/3.348, allocations: 190 kB / 0.8847 GB, free: 129.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004365/3.348, allocations: 85.98 kB / 0.8848 GB, free: 129.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009177/3.357, allocations: 3.357 MB / 0.8881 GB, free: 128.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.42e-07/3.358, allocations: 3.656 kB / 0.8881 GB, free: 128.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01202/3.37, allocations: 1.706 MB / 0.8897 GB, free: 127.9 MB / 490.7 MB 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.06029/3.43, allocations: 19.21 MB / 0.9085 GB, free: 119.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02405/3.454, allocations: 10.53 MB / 0.9188 GB, free: 111.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/3.454, allocations: 4 kB / 0.9188 GB, free: 111.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009293/3.463, allocations: 3.996 MB / 0.9227 GB, free: 107.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005637/3.469, allocations: 0.577 MB / 0.9233 GB, free: 107.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4052/3.874, allocations: 150.2 MB / 1.07 GB, free: 94.15 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01383/3.888, allocations: 4.766 MB / 1.075 GB, free: 93.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008666/3.897, allocations: 2.963 MB / 1.078 GB, free: 93.3 MB / 490.7 MB Notification: Performance of SimCode: time 2.034e-06/3.897, allocations: 0 / 1.078 GB, free: 93.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.547/9.444, allocations: 178.9 MB / 1.252 GB, free: 131.8 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat