Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.389/2.389, allocations: 235.1 MB / 243 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.149e-05/2.145e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.414/0.414, allocations: 54.85 MB / 358.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.5583, allocations: 78.78 MB / 436.9 MB, free: 15.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/0.5587, allocations: 59.97 kB / 437 MB, free: 15.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008137/0.5668, allocations: 1.773 MB / 438.7 MB, free: 14.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5669, allocations: 0 / 438.7 MB, free: 14.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.5669, allocations: 7.938 kB / 438.7 MB, free: 14.11 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004584/0.5674, allocations: 358.3 kB / 439.1 MB, free: 13.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.5674, allocations: 8.031 kB / 439.1 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.595e-05/0.5675, allocations: 11.91 kB / 439.1 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.5676, allocations: 159.1 kB / 439.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.5677, allocations: 4 kB / 439.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.5677, allocations: 8 kB / 439.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001251/0.5679, allocations: 31.92 kB / 439.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.568, allocations: 53.58 kB / 439.4 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.568, allocations: 0 / 439.4 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.568, allocations: 0 / 439.4 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.568, allocations: 0 / 439.4 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002103/0.5683, allocations: 150.1 kB / 439.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003024/0.5686, allocations: 54.61 kB / 439.6 MB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.963e-05/0.5687, allocations: 24.84 kB / 439.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003382/0.569, allocations: 113.1 kB / 439.7 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.5691, allocations: 34.56 kB / 439.7 MB, free: 12.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/0.5691, allocations: 0 / 439.7 MB, free: 12.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.06888/0.638, allocations: 2.093 MB / 441.8 MB, free: 10.83 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.6381, allocations: 55.41 kB / 441.9 MB, free: 10.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.403e-05/0.6382, allocations: 96.95 kB / 442 MB, free: 10.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.661e-05/0.6382, allocations: 25.7 kB / 442 MB, free: 10.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.35e-05/0.6383, allocations: 150.6 kB / 442.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.6384, allocations: 63.02 kB / 442.2 MB, free: 10.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.214e-05/0.6385, allocations: 0 / 442.2 MB, free: 10.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.6386, allocations: 322.8 kB / 442.5 MB, free: 10.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.639, allocations: 139.9 kB / 442.7 MB, free: 9.961 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003495/0.6394, allocations: 140 kB / 442.8 MB, free: 9.824 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008335/0.6402, allocations: 191.9 kB / 443 MB, free: 9.637 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.6402, allocations: 0 / 443 MB, free: 9.637 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001449/0.6417, allocations: 412 kB / 443.4 MB, free: 9.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.6417, allocations: 4 kB / 443.4 MB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.6418, allocations: 0 / 443.4 MB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.6418, allocations: 4 kB / 443.4 MB, free: 9.223 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007277/0.6425, allocations: 87.77 kB / 443.5 MB, free: 9.137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.6426, allocations: 4 kB / 443.5 MB, free: 9.133 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003856/0.6429, allocations: 23.97 kB / 443.5 MB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.149e-05/0.643, allocations: 19.98 kB / 443.5 MB, free: 9.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.6432, allocations: 105 kB / 443.6 MB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001448/0.6447, allocations: 413.3 kB / 444 MB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.36e-05/0.6447, allocations: 8.156 kB / 444 MB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.6466, allocations: 0.4886 MB / 444.5 MB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.6466, allocations: 4 kB / 444.5 MB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.6466, allocations: 0 / 444.5 MB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.6466, allocations: 0 / 444.5 MB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/0.6499, allocations: 0.8548 MB / 445.4 MB, free: 7.145 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.6499, allocations: 4 kB / 445.4 MB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005556/0.6505, allocations: 72.12 kB / 445.5 MB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.315e-05/0.6505, allocations: 4 kB / 445.5 MB, free: 7.066 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.49e-05/0.6506, allocations: 19.86 kB / 445.5 MB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.6506, allocations: 4 kB / 445.5 MB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.6506, allocations: 4.094 kB / 445.5 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.6519, allocations: 490.6 kB / 446 MB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.127e-05/0.652, allocations: 85.02 kB / 446.1 MB, free: 6.387 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.409e-05/0.652, allocations: 7.953 kB / 446.1 MB, free: 6.379 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004171/0.6524, allocations: 31.97 kB / 446.1 MB, free: 6.348 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.27e-05/0.6525, allocations: 11.98 kB / 446.1 MB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.133e-05/0.6526, allocations: 15.98 kB / 446.1 MB, free: 6.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.265e-05/0.6526, allocations: 83.28 kB / 446.2 MB, free: 6.238 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6526, allocations: 0 / 446.2 MB, free: 6.238 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001346/0.654, allocations: 335.7 kB / 446.5 MB, free: 5.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003802/0.6578, allocations: 1.587 MB / 448.1 MB, free: 4.254 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008047/0.6587, allocations: 263.9 kB / 448.4 MB, free: 3.996 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.6587, allocations: 0 / 448.4 MB, free: 3.996 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003168/0.659, allocations: 123.8 kB / 448.5 MB, free: 3.875 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.6593, allocations: 7.984 kB / 448.5 MB, free: 3.867 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002729/0.662, allocations: 496.6 kB / 449 MB, free: 3.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003378/0.6624, allocations: 0.6965 MB / 449.7 MB, free: 2.598 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003529/0.6628, allocations: 59.39 kB / 449.7 MB, free: 2.539 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6628, allocations: 0 / 449.7 MB, free: 2.539 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.648/3.311, allocations: 7.955 MB / 457.7 MB, free: 10.6 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat