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/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.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.356/2.356, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.369e-05/3.384e-05, allocations: 4 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4024/0.4025, allocations: 54.85 MB / 364.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1499/0.5525, allocations: 79.45 MB / 444.1 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.5528, allocations: 67.95 kB / 444.1 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008466/0.5613, allocations: 1.773 MB / 445.9 MB, free: 15.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5613, allocations: 0 / 445.9 MB, free: 15.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.5614, allocations: 0 / 445.9 MB, free: 15.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.0005056/0.5619, allocations: 362.4 kB / 446.3 MB, free: 14.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.562, allocations: 12.03 kB / 446.3 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.378e-05/0.562, allocations: 43.2 kB / 446.3 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.106e-05/0.5621, allocations: 3.906 kB / 446.3 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.5622, allocations: 163.1 kB / 446.5 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.5622, allocations: 0 / 446.5 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.565e-05/0.5623, allocations: 8 kB / 446.5 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/0.5625, allocations: 58.31 kB / 446.5 MB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.5625, allocations: 0 / 446.5 MB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.5625, allocations: 8 kB / 446.6 MB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.5625, allocations: 0 / 446.6 MB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.5626, allocations: 29.67 kB / 446.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002473/0.5629, allocations: 175 kB / 446.8 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.5632, allocations: 61.88 kB / 446.8 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.191e-05/0.5633, allocations: 20.86 kB / 446.8 MB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003528/0.5637, allocations: 117.1 kB / 446.9 MB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.5637, allocations: 34.56 kB / 447 MB, free: 13.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.625e-06/0.5637, allocations: 0 / 447 MB, free: 13.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0698/0.6336, allocations: 2.064 MB / 449 MB, free: 11.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.6337, allocations: 59.39 kB / 449.1 MB, free: 11.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.492e-05/0.6338, allocations: 93 kB / 449.2 MB, free: 11.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.681e-05/0.6338, allocations: 29.7 kB / 449.2 MB, free: 11.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.302e-05/0.6339, allocations: 150.6 kB / 449.4 MB, free: 11.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.6341, allocations: 59.11 kB / 449.4 MB, free: 11.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-05/0.6341, allocations: 4 kB / 449.4 MB, free: 11.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.6343, allocations: 322.8 kB / 449.7 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004201/0.6347, allocations: 140 kB / 449.9 MB, free: 10.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004105/0.6351, allocations: 146.7 kB / 450 MB, free: 10.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006075/0.6357, allocations: 163.9 kB / 450.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.6358, allocations: 0 / 450.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00127/0.637, allocations: 396.3 kB / 450.6 MB, free: 10.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.6371, allocations: 7.938 kB / 450.6 MB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.6371, allocations: 0 / 450.6 MB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.6371, allocations: 4 kB / 450.6 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007062/0.6379, allocations: 75.94 kB / 450.7 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.6379, allocations: 0 / 450.7 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004071/0.6383, allocations: 27.98 kB / 450.7 MB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.902e-05/0.6384, allocations: 19.98 kB / 450.7 MB, free: 10.06 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.0001611/0.6386, allocations: 112.9 kB / 450.8 MB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.209e-05/0.6386, allocations: 11.86 kB / 450.8 MB, free: 9.934 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/0.6403, allocations: 473.8 kB / 451.3 MB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.6404, allocations: 4 kB / 451.3 MB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.036e-06/0.6404, allocations: 3.953 kB / 451.3 MB, free: 9.449 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.6404, allocations: 0 / 451.3 MB, free: 9.449 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0032/0.6436, allocations: 0.8685 MB / 452.2 MB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.6437, allocations: 0 / 452.2 MB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005587/0.6443, allocations: 71.95 kB / 452.2 MB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.937e-06/0.6443, allocations: 0 / 452.2 MB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.419e-05/0.6443, allocations: 20.17 kB / 452.3 MB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.642e-05/0.6444, allocations: 8 kB / 452.3 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.6444, allocations: 3.938 kB / 452.3 MB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.6455, allocations: 462.7 kB / 452.7 MB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.271e-05/0.6456, allocations: 89 kB / 452.8 MB, free: 7.777 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.512e-05/0.6456, allocations: 4.5 kB / 452.8 MB, free: 7.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003745/0.646, allocations: 27.98 kB / 452.8 MB, free: 7.746 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.242e-05/0.6461, allocations: 19.92 kB / 452.9 MB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.281e-05/0.6462, allocations: 17.67 kB / 452.9 MB, free: 7.711 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.844e-05/0.6462, allocations: 87.23 kB / 453 MB, free: 7.625 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6462, allocations: 0 / 453 MB, free: 7.625 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00135/0.6476, allocations: 351.8 kB / 453.3 MB, free: 7.281 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.003717/0.6513, allocations: 1.565 MB / 454.9 MB, free: 5.652 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009289/0.6523, allocations: 287.7 kB / 455.2 MB, free: 5.371 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.6524, allocations: 0 / 455.2 MB, free: 5.371 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003896/0.6528, allocations: 111.9 kB / 455.3 MB, free: 5.262 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.653, allocations: 7.953 kB / 455.3 MB, free: 5.254 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003737/0.6567, allocations: 0.507 MB / 455.8 MB, free: 4.688 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.6572, allocations: 0.6968 MB / 456.5 MB, free: 3.961 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000487/0.6577, allocations: 63.39 kB / 456.5 MB, free: 3.898 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6578, allocations: 4 kB / 456.5 MB, free: 3.895 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.706/3.364, allocations: 7.548 MB / 464.1 MB, free: 12.36 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