Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.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 Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01565/0.01565, allocations: 105 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001768/0.001768, allocations: 172.8 kB / 15.94 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.954/1.954, allocations: 170.9 MB / 187.5 MB, free: 1.004 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2541/0.2541, allocations: 38.09 MB / 265.1 MB, free: 3.973 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004559/0.0004556, allocations: 8 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09069/0.09118, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0007232/0.09196, allocations: 260.5 kB / 372.6 MB, free: 12.6 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008012/0.09278, allocations: 340.7 kB / 372.9 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.847e-05/0.09282, allocations: 0 / 372.9 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.161e-05/0.09285, allocations: 3.938 kB / 372.9 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.057e-05/0.0929, allocations: 3.938 kB / 372.9 MB, free: 12.26 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003942/0.0933, allocations: 75.78 kB / 373 MB, free: 12.19 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.2e-05/0.09337, allocations: 15.98 kB / 373 MB, free: 12.17 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.466e-05/0.09343, allocations: 4 kB / 373 MB, free: 12.17 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.874e-05/0.09347, allocations: 15.92 kB / 373 MB, free: 12.15 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.065e-05/0.09354, allocations: 15.92 kB / 373 MB, free: 12.14 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.501e-05/0.09357, allocations: 0 / 373 MB, free: 12.14 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002638/0.09384, allocations: 103.9 kB / 373.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.652e-05/0.09387, allocations: 11.97 kB / 373.1 MB, free: 12.02 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.521e-05/0.09397, allocations: 33.64 kB / 373.2 MB, free: 11.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.09415, allocations: 59.91 kB / 373.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.09417, allocations: 0 / 373.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.09418, allocations: 4 kB / 373.2 MB, free: 11.92 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.09419, allocations: 0 / 373.2 MB, free: 11.92 MB / 282.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.0004474/0.09465, allocations: 355.5 kB / 373.6 MB, free: 11.53 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.09471, allocations: 8.031 kB / 373.6 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.459e-05/0.09476, allocations: 38.55 kB / 373.6 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.556e-05/0.0948, allocations: 4 kB / 373.6 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.09495, allocations: 171 kB / 373.8 MB, free: 11.26 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.09498, allocations: 0 / 373.8 MB, free: 11.26 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.09502, allocations: 11.91 kB / 373.8 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001523/0.09518, allocations: 65.55 kB / 373.9 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.09521, allocations: 0 / 373.9 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.09523, allocations: 0 / 373.9 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.09524, allocations: 0 / 373.9 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.357e-05/0.09535, allocations: 23.98 kB / 373.9 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002023/0.09556, allocations: 169.7 kB / 374.1 MB, free: 10.94 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002908/0.09587, allocations: 58.55 kB / 374.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003994/0.09628, allocations: 125.1 kB / 374.2 MB, free: 10.73 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.09632, allocations: 30.56 kB / 374.3 MB, free: 10.7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.954e-06/0.09634, allocations: 0 / 374.3 MB, free: 10.7 MB / 282.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.08375/0.1801, allocations: 2.82 MB / 377.1 MB, free: 7.844 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.041e-05/0.1802, allocations: 55.41 kB / 377.1 MB, free: 7.777 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.1804, allocations: 97.84 kB / 377.2 MB, free: 7.672 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.573e-05/0.1805, allocations: 37.7 kB / 377.3 MB, free: 7.629 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.451e-05/0.1805, allocations: 80.14 kB / 377.3 MB, free: 7.547 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.1807, allocations: 67 kB / 377.4 MB, free: 7.48 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.1808, allocations: 4 kB / 377.4 MB, free: 7.477 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.181, allocations: 322.8 kB / 377.7 MB, free: 7.152 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.1821, allocations: 195.9 kB / 377.9 MB, free: 6.961 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.1832, allocations: 194.4 kB / 378.1 MB, free: 6.773 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.1846, allocations: 215.9 kB / 378.3 MB, free: 6.562 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1847, allocations: 0 / 378.3 MB, free: 6.562 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002877/0.1876, allocations: 493.3 kB / 378.8 MB, free: 6.074 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.983e-05/0.1876, allocations: 4.469 kB / 378.8 MB, free: 6.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.1877, allocations: 4 kB / 378.8 MB, free: 6.066 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.572e-05/0.1877, allocations: 4 kB / 378.8 MB, free: 6.062 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009965/0.1887, allocations: 79.88 kB / 378.9 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.1888, allocations: 3.984 kB / 378.9 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005646/0.1893, allocations: 31.92 kB / 378.9 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.754e-05/0.1895, allocations: 19.98 kB / 379 MB, free: 5.93 MB / 282.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.0002456/0.1897, allocations: 118.8 kB / 379.1 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.724e-05/0.1898, allocations: 7.906 kB / 379.1 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003538/0.1934, allocations: 0.5784 MB / 379.7 MB, free: 5.207 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.1934, allocations: 4 kB / 379.7 MB, free: 5.203 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1934, allocations: 0 / 379.7 MB, free: 5.203 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1935, allocations: 0 / 379.7 MB, free: 5.203 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003659/0.1971, allocations: 0.9402 MB / 380.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.1972, allocations: 4 kB / 380.6 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005496/0.1977, allocations: 80.12 kB / 380.7 MB, free: 4.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.053e-05/0.1977, allocations: 8.188 kB / 380.7 MB, free: 4.102 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.897e-05/0.1978, allocations: 15.98 kB / 380.7 MB, free: 4.086 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.1978, allocations: 7.953 kB / 380.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.1978, allocations: 4 kB / 380.7 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.1995, allocations: 0.5494 MB / 381.3 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.874e-05/0.1996, allocations: 89.02 kB / 381.4 MB, free: 3.348 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.245e-05/0.1996, allocations: 4 kB / 381.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003731/0.2, allocations: 31.97 kB / 381.4 MB, free: 3.312 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.2001, allocations: 23.86 kB / 381.4 MB, free: 3.289 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.854e-05/0.2002, allocations: 23.98 kB / 381.4 MB, free: 3.266 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.308e-05/0.2002, allocations: 75.28 kB / 381.5 MB, free: 3.191 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2002, allocations: 4 kB / 381.5 MB, free: 3.188 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001234/0.2015, allocations: 316 kB / 381.8 MB, free: 2.879 MB / 282.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.004236/0.2057, allocations: 1.639 MB / 383.5 MB, free: 1.176 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001544/0.2073, allocations: 367.7 kB / 383.8 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.2073, allocations: 0 / 383.8 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006626/0.208, allocations: 164.1 kB / 384 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.2083, allocations: 8 kB / 384 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.2113, allocations: 0.5603 MB / 384.5 MB, free: 24 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.2117, allocations: 0.6968 MB / 385.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006251/0.2123, allocations: 92.88 kB / 385.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003523/0.2127, allocations: 63.39 kB / 385.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2127, allocations: 0 / 385.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05391/0.2666, allocations: 18.43 MB / 403.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003115/0.267, allocations: 205.2 kB / 404 MB, free: 12.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.611/2.878, allocations: 0 / 404 MB, free: 12.52 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat