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.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.07/2.07, allocations: 209.2 MB / 224.8 MB, free: 304 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007255/0.0007257, allocations: 15.98 kB / 282.7 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4342/0.435, allocations: 48.7 MB / 331.4 MB, free: 6.387 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1788/0.6139, allocations: 73.17 MB / 404.5 MB, free: 5.121 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.6142, allocations: 63.97 kB / 404.6 MB, free: 5.059 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008272/0.6225, allocations: 1.773 MB / 406.4 MB, free: 3.293 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6226, allocations: 0 / 406.4 MB, free: 3.293 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.6226, allocations: 0 / 406.4 MB, free: 3.293 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.0004859/0.6231, allocations: 371.2 kB / 406.7 MB, free: 2.883 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.6231, allocations: 8.031 kB / 406.7 MB, free: 2.875 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.692e-05/0.6232, allocations: 38.56 kB / 406.8 MB, free: 2.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.788e-05/0.6232, allocations: 3.938 kB / 406.8 MB, free: 2.824 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.6234, allocations: 178.9 kB / 407 MB, free: 2.609 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.6234, allocations: 7.984 kB / 407 MB, free: 2.602 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.6235, allocations: 11.91 kB / 407 MB, free: 2.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001577/0.6236, allocations: 49.67 kB / 407 MB, free: 2.535 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.6237, allocations: 0 / 407 MB, free: 2.535 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.6237, allocations: 8 kB / 407 MB, free: 2.527 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.6237, allocations: 4 kB / 407 MB, free: 2.523 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.6239, allocations: 19.98 kB / 407.1 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002415/0.6241, allocations: 177.5 kB / 407.2 MB, free: 2.281 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.6244, allocations: 54.55 kB / 407.3 MB, free: 2.219 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003568/0.6248, allocations: 113.1 kB / 407.4 MB, free: 2.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.6248, allocations: 34.56 kB / 407.4 MB, free: 2.047 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.304e-06/0.6248, allocations: 0 / 407.4 MB, free: 2.047 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.07705/0.7019, allocations: 2.806 MB / 410.2 MB, free: 15.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.759e-05/0.702, allocations: 51.41 kB / 410.3 MB, free: 15.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.7022, allocations: 96.98 kB / 410.4 MB, free: 15.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.194e-05/0.7022, allocations: 33.7 kB / 410.4 MB, free: 15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.149e-05/0.7023, allocations: 154.5 kB / 410.6 MB, free: 14.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.7025, allocations: 63.02 kB / 410.6 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.434e-05/0.7025, allocations: 4 kB / 410.6 MB, free: 14.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.7027, allocations: 322.8 kB / 410.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000756/0.7035, allocations: 191.9 kB / 411.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007634/0.7043, allocations: 194.1 kB / 411.3 MB, free: 14.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009961/0.7053, allocations: 211.9 kB / 411.5 MB, free: 13.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.7053, allocations: 480 / 411.5 MB, free: 13.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001962/0.7073, allocations: 0.4889 MB / 412 MB, free: 13.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.7074, allocations: 4 kB / 412 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.7074, allocations: 0 / 412 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.7074, allocations: 0 / 412 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007045/0.7081, allocations: 87.81 kB / 412.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.7082, allocations: 0 / 412.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004068/0.7086, allocations: 31.97 kB / 412.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.157e-05/0.7086, allocations: 15.98 kB / 412.2 MB, free: 13.25 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.0001959/0.7089, allocations: 121.8 kB / 412.3 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.955e-05/0.7089, allocations: 8 kB / 412.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/0.7113, allocations: 0.5762 MB / 412.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.7114, allocations: 0 / 412.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.7114, allocations: 4 kB / 412.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.7114, allocations: 0 / 412.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004033/0.7155, allocations: 0.9445 MB / 413.8 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.7155, allocations: 4 kB / 413.8 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005849/0.7161, allocations: 80.06 kB / 413.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.408e-05/0.7161, allocations: 7.953 kB / 413.9 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.571e-05/0.7162, allocations: 8 kB / 413.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.7162, allocations: 7.984 kB / 413.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.7162, allocations: 0 / 413.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.718, allocations: 0.5533 MB / 414.5 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.838e-05/0.7181, allocations: 85.02 kB / 414.5 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.984e-05/0.7182, allocations: 8 kB / 414.6 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003689/0.7186, allocations: 31.92 kB / 414.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.889e-05/0.7186, allocations: 19.92 kB / 414.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-05/0.7187, allocations: 12 kB / 414.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.933e-05/0.7188, allocations: 87.2 kB / 414.7 MB, free: 10.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7188, allocations: 4 kB / 414.7 MB, free: 10.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001671/0.7205, allocations: 351.7 kB / 415 MB, free: 10.17 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.006582/0.7271, allocations: 1.67 MB / 416.7 MB, free: 8.438 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.7295, allocations: 371.7 kB / 417.1 MB, free: 8.074 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.7296, allocations: 0 / 417.1 MB, free: 8.074 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.7307, allocations: 164.2 kB / 417.2 MB, free: 7.914 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/0.7311, allocations: 4 kB / 417.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004784/0.7359, allocations: 0.6165 MB / 417.9 MB, free: 7.223 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003554/0.7363, allocations: 0.7007 MB / 418.6 MB, free: 6.492 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003849/0.7367, allocations: 59.39 kB / 418.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of SimCode: time 1.103e-06/0.7367, allocations: 0 / 418.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.535/3.272, allocations: 7.688 MB / 426.3 MB, free: 14.78 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat