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/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.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.238/2.238, allocations: 235.1 MB / 243 MB, free: 15.69 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.928e-05/2.949e-05, allocations: 4 kB / 303.3 MB, free: 3.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3429, allocations: 54.86 MB / 358.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1833/0.5263, allocations: 102.2 MB / 460.4 MB, free: 9.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.5266, allocations: 75.95 kB / 460.4 MB, free: 9.176 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7826/1.309, allocations: 124 MB / 0.5707 GB, free: 27.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.573e-06/1.309, allocations: 0 / 0.5707 GB, free: 27.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003733/1.31, allocations: 116 kB / 0.5709 GB, free: 27.68 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.02475/1.334, allocations: 6.327 MB / 0.577 GB, free: 21.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/1.334, allocations: 8.031 kB / 0.577 GB, free: 21.28 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05776/1.392, allocations: 8.318 MB / 0.5852 GB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02565/1.418, allocations: 7.358 MB / 0.5923 GB, free: 5.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003298/1.418, allocations: 195.9 kB / 0.5925 GB, free: 5.328 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003157/1.422, allocations: 359.9 kB / 0.5929 GB, free: 4.977 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02506/1.447, allocations: 10.15 MB / 0.6028 GB, free: 10.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03882/1.485, allocations: 14.07 MB / 0.6165 GB, free: 11.58 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003309/1.486, allocations: 71.41 kB / 0.6166 GB, free: 11.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00186/1.488, allocations: 36 kB / 0.6166 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003765/1.492, allocations: 1.62 MB / 0.6182 GB, free: 9.855 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4341/1.926, allocations: 61.4 MB / 0.6782 GB, free: 58.12 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009094/1.935, allocations: 5.593 MB / 0.6836 GB, free: 56.89 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006334/1.941, allocations: 3.438 MB / 0.687 GB, free: 56.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03408/1.975, allocations: 14.14 MB / 0.7008 GB, free: 53.37 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.791e-05/1.975, allocations: 56.28 kB / 0.7009 GB, free: 53.33 MB / 458.7 MB Notification: Performance of pre-optimization done (n=289): time 6.793e-06/1.975, allocations: 0 / 0.7009 GB, free: 53.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=339): time 0.1213/2.097, allocations: 30.95 MB / 0.7311 GB, free: 43.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.528e-05/2.097, allocations: 214.3 kB / 0.7313 GB, free: 43.26 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009162/2.106, allocations: 4.279 MB / 0.7355 GB, free: 41.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008633/2.107, allocations: 25.7 kB / 0.7355 GB, free: 41.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0035/2.11, allocations: 4.426 MB / 0.7398 GB, free: 38.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001915/2.112, allocations: 1.22 MB / 0.741 GB, free: 37.39 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001195/2.114, allocations: 0 / 0.741 GB, free: 37.39 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006147/2.114, allocations: 0.7042 MB / 0.7417 GB, free: 36.91 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009314/2.124, allocations: 4.398 MB / 0.746 GB, free: 33.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0133/2.137, allocations: 9.567 MB / 0.7553 GB, free: 22.03 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01894/2.156, allocations: 6.389 MB / 0.7616 GB, free: 16.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002869/2.156, allocations: 52 kB / 0.7616 GB, free: 16.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.08381/2.24, allocations: 17.57 MB / 0.7788 GB, free: 3.199 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001261/2.24, allocations: 89.52 kB / 0.7789 GB, free: 3.113 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002647/2.241, allocations: 184 kB / 0.779 GB, free: 2.934 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04076/2.281, allocations: 5.744 MB / 0.7847 GB, free: 15.76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01502/2.296, allocations: 2.145 MB / 0.7868 GB, free: 13.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05007/2.347, allocations: 21.62 MB / 0.8079 GB, free: 9.453 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01124/2.358, allocations: 391.1 kB / 0.8082 GB, free: 9.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002284/2.36, allocations: 0.5311 MB / 0.8088 GB, free: 8.543 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 838 * 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 (1106): * Single equations (assignments): 1098 * 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.00218/2.362, allocations: 0.5558 MB / 0.8093 GB, free: 7.98 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05488/2.417, allocations: 11.93 MB / 0.821 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001926/2.419, allocations: 477.7 kB / 0.8214 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3953/2.815, allocations: 12.09 MB / 0.8332 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001834/2.815, allocations: 56.39 kB / 0.8333 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.034e-05/2.815, allocations: 12.34 kB / 0.8333 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.264e-05/2.815, allocations: 15.06 kB / 0.8333 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07687/2.892, allocations: 22.58 MB / 0.8553 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.721e-05/2.892, allocations: 6.688 kB / 0.8554 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005763/2.898, allocations: 0.5729 MB / 0.8559 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03407/2.932, allocations: 4.636 MB / 0.8604 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008588/2.933, allocations: 12.47 kB / 0.8604 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03465/2.967, allocations: 17.33 MB / 0.8774 GB, free: 118.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.295e-05/2.967, allocations: 10.38 kB / 0.8774 GB, free: 118.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05578/3.023, allocations: 17.09 MB / 0.8941 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004246/3.028, allocations: 1.182 MB / 0.8952 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001735/3.029, allocations: 9.109 kB / 0.8952 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0059/3.035, allocations: 205 kB / 0.8954 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001455/3.037, allocations: 192.2 kB / 0.8956 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004783/3.037, allocations: 89.92 kB / 0.8957 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007001/3.044, allocations: 2.841 MB / 0.8985 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.81e-07/3.044, allocations: 0 / 0.8985 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01076/3.055, allocations: 1.497 MB / 0.8999 GB, free: 110.2 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.05685/3.112, allocations: 18.82 MB / 0.9183 GB, free: 99.39 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02167/3.134, allocations: 10.07 MB / 0.9281 GB, free: 90.65 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.398e-05/3.134, allocations: 0.75 kB / 0.9282 GB, free: 90.65 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008186/3.142, allocations: 3.867 MB / 0.9319 GB, free: 87.16 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004486/3.146, allocations: 466.3 kB / 0.9324 GB, free: 86.77 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04625/3.193, allocations: 15.93 MB / 0.9479 GB, free: 72.95 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01003/3.203, allocations: 4.75 MB / 0.9526 GB, free: 69.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007547/3.21, allocations: 2.955 MB / 0.9555 GB, free: 66.68 MB / 0.4948 GB Notification: Performance of SimCode: time 1.954e-06/3.211, allocations: 0 / 0.9555 GB, free: 66.68 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.351/8.562, allocations: 177.6 MB / 1.129 GB, free: 55.8 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