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.296/2.296, allocations: 234.9 MB / 250.5 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007126/0.0007128, allocations: 15.94 kB / 314.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4158/0.4166, allocations: 54.87 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.151/0.5676, allocations: 79.53 MB / 448.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.5679, allocations: 63.97 kB / 449 MB, free: 11.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008351/0.5763, allocations: 1.789 MB / 450.7 MB, free: 9.215 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5764, allocations: 0 / 450.7 MB, free: 9.215 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.5764, allocations: 4 kB / 450.7 MB, free: 9.211 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.0006027/0.577, allocations: 367.2 kB / 451.1 MB, free: 8.805 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.976e-05/0.5771, allocations: 12.03 kB / 451.1 MB, free: 8.793 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.083e-05/0.5772, allocations: 38.5 kB / 451.2 MB, free: 8.746 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.712e-05/0.5772, allocations: 7.844 kB / 451.2 MB, free: 8.738 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.5775, allocations: 175 kB / 451.3 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.5775, allocations: 0 / 451.3 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.146e-05/0.5776, allocations: 8 kB / 451.3 MB, free: 8.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.5777, allocations: 49.62 kB / 451.4 MB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.5778, allocations: 11.95 kB / 451.4 MB, free: 8.453 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.5778, allocations: 8 kB / 451.4 MB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.5778, allocations: 0 / 451.4 MB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000101/0.5779, allocations: 27.97 kB / 451.4 MB, free: 8.418 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002314/0.5782, allocations: 165.6 kB / 451.6 MB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002972/0.5785, allocations: 62.58 kB / 451.7 MB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003526/0.5788, allocations: 113.1 kB / 451.8 MB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.5789, allocations: 30.56 kB / 451.8 MB, free: 7.969 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.724e-06/0.5789, allocations: 0 / 451.8 MB, free: 7.969 MB / 378.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.07488/0.6538, allocations: 2.812 MB / 454.6 MB, free: 5.125 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/0.6539, allocations: 59.36 kB / 454.7 MB, free: 5.055 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.654, allocations: 92.98 kB / 454.8 MB, free: 4.957 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.009e-05/0.6541, allocations: 29.7 kB / 454.8 MB, free: 4.922 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.132e-05/0.6542, allocations: 150.6 kB / 454.9 MB, free: 4.773 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/0.6544, allocations: 63.02 kB / 455 MB, free: 4.711 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.74e-05/0.6545, allocations: 4 kB / 455 MB, free: 4.707 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.6547, allocations: 326.8 kB / 455.3 MB, free: 4.379 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009715/0.6556, allocations: 187.9 kB / 455.5 MB, free: 4.195 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009768/0.6566, allocations: 187.9 kB / 455.7 MB, free: 4.012 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/0.658, allocations: 223.9 kB / 455.9 MB, free: 3.793 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.658, allocations: 0 / 455.9 MB, free: 3.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002642/0.6607, allocations: 487.5 kB / 456.4 MB, free: 3.312 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.89e-05/0.6607, allocations: 7.953 kB / 456.4 MB, free: 3.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.6608, allocations: 3.984 kB / 456.4 MB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.6608, allocations: 4 kB / 456.4 MB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008822/0.6617, allocations: 75.94 kB / 456.5 MB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.6617, allocations: 7.938 kB / 456.5 MB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005088/0.6622, allocations: 23.98 kB / 456.5 MB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.254e-05/0.6623, allocations: 15.98 kB / 456.5 MB, free: 3.176 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 () * Number of clocked 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.000234/0.6626, allocations: 117.8 kB / 456.6 MB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.631e-05/0.6627, allocations: 11.91 kB / 456.6 MB, free: 3.039 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003399/0.6661, allocations: 0.5685 MB / 457.2 MB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.6661, allocations: 8.469 kB / 457.2 MB, free: 2.445 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.485e-06/0.6662, allocations: 0 / 457.2 MB, free: 2.445 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.6662, allocations: 3.953 kB / 457.2 MB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005261/0.6715, allocations: 0.9515 MB / 458.2 MB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.6715, allocations: 0 / 458.2 MB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007361/0.6723, allocations: 84 kB / 458.3 MB, free: 1.332 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/0.6723, allocations: 4 kB / 458.3 MB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-05/0.6724, allocations: 19.98 kB / 458.3 MB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.6724, allocations: 0 / 458.3 MB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/0.6724, allocations: 7.984 kB / 458.3 MB, free: 1.301 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007172/0.6796, allocations: 0.5512 MB / 458.8 MB, free: 0.6797 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.692e-05/0.6797, allocations: 85.02 kB / 458.9 MB, free: 0.5781 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.984e-05/0.6798, allocations: 8 kB / 458.9 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005097/0.6803, allocations: 31.97 kB / 459 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.627e-05/0.6804, allocations: 15.92 kB / 459 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.215e-05/0.6805, allocations: 19.98 kB / 459 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.885e-05/0.6805, allocations: 83.28 kB / 459.1 MB, free: 432 kB / 378.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6806, allocations: 4 kB / 459.1 MB, free: 428 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.005069/0.6857, allocations: 343.7 kB / 459.4 MB, free: 84 kB / 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 () * Number of clocked 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.01063/0.6963, allocations: 1.674 MB / 461.1 MB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002089/0.6984, allocations: 370.1 kB / 461.5 MB, free: 13.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.6985, allocations: 0 / 461.5 MB, free: 13.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009082/0.6994, allocations: 164.2 kB / 461.6 MB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.6998, allocations: 14.95 kB / 461.6 MB, free: 13.81 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/0.712, allocations: 0.6129 MB / 462.2 MB, free: 13.13 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/0.7124, allocations: 0.6968 MB / 462.9 MB, free: 12.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004888/0.7129, allocations: 67.33 kB / 463 MB, free: 12.34 MB / 394.7 MB Notification: Performance of SimCode: time 1.263e-06/0.7129, allocations: 0 / 463 MB, free: 12.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.719/3.432, allocations: 7.69 MB / 470.7 MB, free: 4.66 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