Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring2.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.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.102/2.102, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004839/0.000484, allocations: 12 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4763/0.4769, allocations: 48.7 MB / 331.4 MB, free: 6.543 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1618/0.6388, allocations: 88.88 MB / 420.2 MB, free: 5.496 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.6391, allocations: 71.97 kB / 420.3 MB, free: 5.426 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6802/1.319, allocations: 95.98 MB / 0.5042 GB, free: 87.33 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.836e-06/1.319, allocations: 0 / 0.5042 GB, free: 87.33 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000277/1.32, allocations: 99.02 kB / 0.5043 GB, free: 87.32 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: 1679 * Number of variables: 1679 Notification: Performance of Generate backend data structure: time 0.04397/1.364, allocations: 6.106 MB / 0.5102 GB, free: 83.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/1.364, allocations: 6.812 kB / 0.5103 GB, free: 83.67 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004102/1.368, allocations: 0.8677 MB / 0.5111 GB, free: 83.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02472/1.393, allocations: 2.872 MB / 0.5139 GB, free: 81.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02528/1.418, allocations: 7.211 MB / 0.521 GB, free: 74.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004658/1.418, allocations: 361.1 kB / 0.5213 GB, free: 74.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002882/1.421, allocations: 476.9 kB / 0.5217 GB, free: 73.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03782/1.459, allocations: 12.26 MB / 0.5337 GB, free: 60.58 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003419/1.46, allocations: 83.23 kB / 0.5338 GB, free: 60.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002215/1.462, allocations: 236.6 kB / 0.534 GB, free: 60.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002974/1.465, allocations: 1.193 MB / 0.5352 GB, free: 59.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03376/1.499, allocations: 10.48 MB / 0.5454 GB, free: 48.6 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09257/1.591, allocations: 57.03 MB / 0.6011 GB, free: 6.117 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02676/1.618, allocations: 5.046 MB / 0.6061 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04258/1.661, allocations: 11.14 MB / 0.6169 GB, free: 5.379 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.859e-05/1.661, allocations: 63.39 kB / 0.617 GB, free: 5.312 MB / 426.7 MB Notification: Performance of pre-optimization done (n=198): time 7.584e-06/1.661, allocations: 0 / 0.617 GB, free: 5.312 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.4356/2.097, allocations: 24.45 MB / 0.6409 GB, free: 107.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003838/2.1, allocations: 4.637 MB / 0.6454 GB, free: 102.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01187/2.112, allocations: 4.117 MB / 0.6494 GB, free: 102.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000888/2.113, allocations: 56.52 kB / 0.6495 GB, free: 102.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003451/2.117, allocations: 3.383 MB / 0.6528 GB, free: 100.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00207/2.119, allocations: 0.9565 MB / 0.6537 GB, free: 99.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001257/2.12, allocations: 147 kB / 0.6538 GB, free: 99.56 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006344/2.121, allocations: 0.6192 MB / 0.6545 GB, free: 99.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00941/2.13, allocations: 3.18 MB / 0.6576 GB, free: 98.13 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01259/2.143, allocations: 7.41 MB / 0.6648 GB, free: 91.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/2.155, allocations: 4.714 MB / 0.6694 GB, free: 89.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001869/2.156, allocations: 43.44 kB / 0.6694 GB, free: 89.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.04351/2.199, allocations: 12.72 MB / 0.6819 GB, free: 85.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/2.199, allocations: 67.88 kB / 0.6819 GB, free: 85.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02335/2.223, allocations: 6.165 MB / 0.6879 GB, free: 82.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01709/2.24, allocations: 3.105 MB / 0.691 GB, free: 80.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01096/2.251, allocations: 1.748 MB / 0.6927 GB, free: 79.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02338/2.274, allocations: 15.03 MB / 0.7074 GB, free: 65.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01239/2.287, allocations: 0.7644 MB / 0.7081 GB, free: 64.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002028/2.289, allocations: 451.8 kB / 0.7085 GB, free: 64.15 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 42 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (891): * Single equations (assignments): 871 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007204/2.296, allocations: 2.306 MB / 0.7108 GB, free: 62.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001433/2.298, allocations: 410.6 kB / 0.7112 GB, free: 61.72 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02684/2.324, allocations: 6.996 MB / 0.718 GB, free: 55.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02359/2.348, allocations: 6.343 MB / 0.7242 GB, free: 49.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.997e-05/2.348, allocations: 8 kB / 0.7242 GB, free: 49.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.802e-05/2.348, allocations: 15.95 kB / 0.7242 GB, free: 48.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04789/2.396, allocations: 14.96 MB / 0.7388 GB, free: 33.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.55e-05/2.396, allocations: 4 kB / 0.7388 GB, free: 33.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003967/2.4, allocations: 419.3 kB / 0.7392 GB, free: 33.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01841/2.419, allocations: 3.341 MB / 0.7425 GB, free: 30.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008882/2.42, allocations: 75.94 kB / 0.7426 GB, free: 30.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02995/2.45, allocations: 16.93 MB / 0.7591 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003558/2.453, allocations: 4.469 MB / 0.7635 GB, free: 7.492 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03378/2.487, allocations: 10.88 MB / 0.7741 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001989/2.489, allocations: 491.5 kB / 0.7746 GB, free: 11.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001918/2.491, allocations: 55.98 kB / 0.7746 GB, free: 11.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006075/2.497, allocations: 341.6 kB / 0.775 GB, free: 11.46 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001335/2.499, allocations: 189.6 kB / 0.7751 GB, free: 11.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004217/2.499, allocations: 75.89 kB / 0.7752 GB, free: 11.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.009303/2.508, allocations: 2.882 MB / 0.778 GB, free: 8.316 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.11e-07/2.508, allocations: 0 / 0.778 GB, free: 8.316 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.011/2.519, allocations: 1.479 MB / 0.7795 GB, free: 6.844 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * 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 (178): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3575/2.877, allocations: 12.46 MB / 0.7916 GB, free: 110.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02732/2.904, allocations: 8.874 MB / 0.8003 GB, free: 109.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/2.904, allocations: 0 / 0.8003 GB, free: 109.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01513/2.92, allocations: 4.581 MB / 0.8048 GB, free: 108.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004994/2.925, allocations: 0.4986 MB / 0.8053 GB, free: 108.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.155/3.08, allocations: 150.7 MB / 0.9525 GB, free: 6.785 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0101/3.09, allocations: 3.735 MB / 0.9561 GB, free: 3.984 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006888/3.097, allocations: 2.263 MB / 0.9583 GB, free: 1.902 MB / 474.7 MB Notification: Performance of SimCode: time 2.024e-06/3.097, allocations: 0 / 0.9583 GB, free: 1.902 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.691/9.788, allocations: 306.1 MB / 1.257 GB, free: 49.91 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat