Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative.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.Fluid.TestUtilities.TestRegRoot2ZeroDerivative,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2ZeroDerivative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.042/2.042, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004532/0.0004533, allocations: 20 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3586, allocations: 48.7 MB / 331.4 MB, free: 6.418 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1869/0.5455, allocations: 73.42 MB / 404.8 MB, free: 4.898 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.5459, allocations: 67.97 kB / 404.8 MB, free: 4.832 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02193/0.5678, allocations: 3.087 MB / 407.9 MB, free: 1.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.5679, allocations: 0 / 407.9 MB, free: 1.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.5679, allocations: 0 / 407.9 MB, free: 1.75 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006286/0.5686, allocations: 370.4 kB / 408.3 MB, free: 1.344 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/0.5686, allocations: 12.03 kB / 408.3 MB, free: 1.332 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.651e-05/0.5687, allocations: 30.56 kB / 408.3 MB, free: 1.293 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.62e-05/0.5688, allocations: 11.91 kB / 408.3 MB, free: 1.281 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.569, allocations: 175 kB / 408.5 MB, free: 1.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.569, allocations: 7.984 kB / 408.5 MB, free: 1.062 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.097e-05/0.5691, allocations: 11.94 kB / 408.5 MB, free: 1.051 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.5693, allocations: 65.67 kB / 408.6 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.5694, allocations: 7.906 kB / 408.6 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.5694, allocations: 4 kB / 408.6 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.5694, allocations: 3.938 kB / 408.6 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.5696, allocations: 43.95 kB / 408.7 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000297/0.5699, allocations: 173.6 kB / 408.8 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.5702, allocations: 88.67 kB / 408.9 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004764/0.5707, allocations: 113.1 kB / 409 MB, free: 492 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.5708, allocations: 38.56 kB / 409.1 MB, free: 444 kB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 3.837e-06/0.5708, allocations: 0 / 409.1 MB, free: 444 kB / 330.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: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=23): time 0.2598/0.8307, allocations: 5.523 MB / 414.6 MB, free: 10.87 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.8308, allocations: 55.41 kB / 414.6 MB, free: 10.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.055e-05/0.8309, allocations: 88.98 kB / 414.7 MB, free: 10.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.589e-05/0.8309, allocations: 29.7 kB / 414.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.943e-05/0.831, allocations: 150.9 kB / 414.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.8311, allocations: 78.83 kB / 415 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.8312, allocations: 0 / 415 MB, free: 10.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.8313, allocations: 323 kB / 415.3 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007037/0.832, allocations: 139.8 kB / 415.4 MB, free: 9.984 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000696/0.8328, allocations: 135.9 kB / 415.6 MB, free: 9.852 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.8342, allocations: 179.7 kB / 415.7 MB, free: 9.676 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.8343, allocations: 0 / 415.7 MB, free: 9.676 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002339/0.8366, allocations: 407.8 kB / 416.1 MB, free: 9.273 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.8367, allocations: 4 kB / 416.1 MB, free: 9.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.8367, allocations: 4 kB / 416.1 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.8367, allocations: 0 / 416.1 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007349/0.8375, allocations: 91.92 kB / 416.2 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.8375, allocations: 7.891 kB / 416.2 MB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000404/0.8379, allocations: 39.95 kB / 416.3 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.223e-05/0.838, allocations: 19.98 kB / 416.3 MB, free: 9.109 MB / 346.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 (23): * Single equations (assignments): 23 * 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.0001856/0.8382, allocations: 117.8 kB / 416.4 MB, free: 8.984 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.929e-05/0.8383, allocations: 11.84 kB / 416.4 MB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002715/0.841, allocations: 477.7 kB / 416.9 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.841, allocations: 8 kB / 416.9 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.8411, allocations: 0 / 416.9 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.8411, allocations: 3.953 kB / 416.9 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004221/0.8453, allocations: 0.8662 MB / 417.8 MB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.417e-06/0.8454, allocations: 3.984 kB / 417.8 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005819/0.846, allocations: 87.94 kB / 417.9 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.846, allocations: 0 / 417.9 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.275e-05/0.846, allocations: 15.98 kB / 417.9 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.846, allocations: 0 / 417.9 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.8461, allocations: 4 kB / 417.9 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.8483, allocations: 0.4904 MB / 418.4 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.225e-05/0.8485, allocations: 85.02 kB / 418.5 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.916e-05/0.8485, allocations: 4 kB / 418.5 MB, free: 6.828 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003661/0.8489, allocations: 35.97 kB / 418.5 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/0.849, allocations: 23.91 kB / 418.5 MB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.77e-05/0.849, allocations: 27.88 kB / 418.5 MB, free: 6.742 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.724e-05/0.8491, allocations: 75.28 kB / 418.6 MB, free: 6.668 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8491, allocations: 0 / 418.6 MB, free: 6.668 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002469/0.8516, allocations: 0.6129 MB / 419.2 MB, free: 6.055 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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.00749/0.8591, allocations: 1.393 MB / 420.6 MB, free: 4.621 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.8608, allocations: 301.1 kB / 420.9 MB, free: 4.328 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.8608, allocations: 0 / 420.9 MB, free: 4.328 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007226/0.8615, allocations: 152 kB / 421.1 MB, free: 4.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002448/0.8618, allocations: 19.89 kB / 421.1 MB, free: 4.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003245/0.8651, allocations: 0.5474 MB / 421.6 MB, free: 3.555 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.8655, allocations: 0.7056 MB / 422.3 MB, free: 2.824 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002798/0.8658, allocations: 59.39 kB / 422.4 MB, free: 2.766 MB / 346.7 MB Notification: Performance of SimCode: time 1.623e-06/0.8658, allocations: 0 / 422.4 MB, free: 2.766 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.386/4.252, allocations: 15.22 MB / 437.6 MB, free: 3.555 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2ZeroDerivative_res.mat does not exist to compare? outputFormat=mat