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.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.884/1.884, allocations: 209.2 MB / 224.8 MB, free: 1.539 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004324/0.0004325, allocations: 12 kB / 282.7 MB, free: 9.672 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1081, allocations: 48.71 MB / 331.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4411/0.5493, allocations: 73.32 MB / 404.7 MB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/0.5496, allocations: 63.97 kB / 404.7 MB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01477/0.5644, allocations: 2.951 MB / 407.7 MB, free: 8.688 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.5645, allocations: 0 / 407.7 MB, free: 8.688 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.5645, allocations: 4 kB / 407.7 MB, free: 8.684 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004893/0.565, allocations: 371.1 kB / 408.1 MB, free: 8.273 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.5651, allocations: 12.03 kB / 408.1 MB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.274e-05/0.5651, allocations: 30.56 kB / 408.1 MB, free: 8.223 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.5652, allocations: 7.938 kB / 408.1 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.5653, allocations: 165.5 kB / 408.3 MB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.5653, allocations: 4 kB / 408.3 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.5654, allocations: 11.91 kB / 408.3 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/0.5656, allocations: 57.61 kB / 408.3 MB, free: 7.938 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.5656, allocations: 3.984 kB / 408.3 MB, free: 7.934 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.5656, allocations: 4 kB / 408.4 MB, free: 7.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.5656, allocations: 0 / 408.4 MB, free: 7.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001018/0.5657, allocations: 27.98 kB / 408.4 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002359/0.566, allocations: 173.5 kB / 408.5 MB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.5663, allocations: 68.77 kB / 408.6 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003516/0.5667, allocations: 105.1 kB / 408.7 MB, free: 7.488 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.5667, allocations: 34.55 kB / 408.8 MB, free: 7.445 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 3.978e-06/0.5667, allocations: 0 / 408.8 MB, free: 7.445 MB / 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: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.2582/0.8249, allocations: 6.086 MB / 414.8 MB, free: 1.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.825, allocations: 51.41 kB / 414.9 MB, free: 1.258 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.8252, allocations: 101 kB / 415 MB, free: 1.152 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.968e-05/0.8253, allocations: 25.7 kB / 415 MB, free: 1.121 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.612e-05/0.8254, allocations: 150.6 kB / 415.2 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.8255, allocations: 67.02 kB / 415.2 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.419e-05/0.8256, allocations: 0 / 415.2 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.8258, allocations: 326.8 kB / 415.5 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.8269, allocations: 219.8 kB / 415.8 MB, free: 372 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.8281, allocations: 226.8 kB / 416 MB, free: 148 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002559/0.8307, allocations: 279.8 kB / 416.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.8307, allocations: 0 / 416.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.004149/0.8349, allocations: 0.5832 MB / 416.8 MB, free: 15.28 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.34e-05/0.8349, allocations: 4 kB / 416.8 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.835, allocations: 0 / 416.8 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.835, allocations: 0 / 416.8 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.8363, allocations: 99.83 kB / 416.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.8363, allocations: 0 / 416.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007896/0.8371, allocations: 31.92 kB / 417 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.8372, allocations: 23.97 kB / 417 MB, free: 15.12 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 (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.0002614/0.8375, allocations: 113.8 kB / 417.1 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.902e-05/0.8376, allocations: 15.94 kB / 417.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004709/0.8424, allocations: 0.6802 MB / 417.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.8424, allocations: 4 kB / 417.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.8424, allocations: 0 / 417.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.8425, allocations: 0 / 417.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007412/0.8499, allocations: 1.086 MB / 418.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.85, allocations: 3.953 kB / 418.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.851, allocations: 91.84 kB / 419 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.052e-05/0.851, allocations: 8.188 kB / 419 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.652e-05/0.8511, allocations: 19.97 kB / 419 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.899e-06/0.8511, allocations: 4 kB / 419 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.8512, allocations: 256 / 419 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003201/0.8544, allocations: 0.6352 MB / 419.6 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.571e-05/0.8545, allocations: 85.02 kB / 419.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.858e-05/0.8546, allocations: 15.95 kB / 419.7 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005482/0.8551, allocations: 27.97 kB / 419.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.847e-05/0.8552, allocations: 15.98 kB / 419.8 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.179e-05/0.8553, allocations: 23.97 kB / 419.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.381e-05/0.8554, allocations: 79.28 kB / 419.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8554, allocations: 0 / 419.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002485/0.8579, allocations: 0.6366 MB / 420.5 MB, free: 11.41 MB / 346.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.00767/0.8656, allocations: 1.839 MB / 422.4 MB, free: 9.504 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001772/0.8674, allocations: 423.7 kB / 422.8 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/0.8674, allocations: 0 / 422.8 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007566/0.8682, allocations: 200 kB / 423 MB, free: 8.895 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.8685, allocations: 7.938 kB / 423 MB, free: 8.887 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004614/0.8731, allocations: 0.6787 MB / 423.7 MB, free: 8.141 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.8735, allocations: 0.6967 MB / 424.4 MB, free: 7.414 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004288/0.8739, allocations: 83.34 kB / 424.4 MB, free: 7.332 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.8739, allocations: 0 / 424.4 MB, free: 7.332 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.143/4.017, allocations: 16.72 MB / 441.2 MB, free: 6.625 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat does not exist to compare? outputFormat=mat