Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_2_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.2/package.mo): time 0.0161/0.01611, allocations: 107 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.2.mo): time 0.002064/0.002063, allocations: 179.4 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.362/2.362, allocations: 194.6 MB / 211.3 MB, free: 10.71 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2968/0.2968, allocations: 40.04 MB / 296.5 MB, free: 6.141 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007582/0.0007586, allocations: 8 kB / 361.1 MB, free: 9.531 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1334, allocations: 54.87 MB / 416 MB, free: 2.562 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0008018/0.1342, allocations: 272.3 kB / 416.3 MB, free: 2.293 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008247/0.1351, allocations: 340.7 kB / 416.6 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.668e-05/0.1351, allocations: 4 kB / 416.6 MB, free: 1.957 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.2e-05/0.1351, allocations: 0 / 416.6 MB, free: 1.957 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.084e-05/0.1352, allocations: 0 / 416.6 MB, free: 1.957 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.1356, allocations: 79.72 kB / 416.7 MB, free: 1.879 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.307e-05/0.1357, allocations: 15.98 kB / 416.7 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.045e-05/0.1357, allocations: 11.98 kB / 416.7 MB, free: 1.852 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.768e-05/0.1358, allocations: 7.938 kB / 416.7 MB, free: 1.844 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.99e-05/0.1358, allocations: 19.92 kB / 416.8 MB, free: 1.824 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.1359, allocations: 4 kB / 416.8 MB, free: 1.82 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002628/0.1361, allocations: 107.8 kB / 416.9 MB, free: 1.715 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.75e-05/0.1362, allocations: 11.98 kB / 416.9 MB, free: 1.703 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.063e-05/0.1362, allocations: 29.64 kB / 416.9 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.1364, allocations: 55.91 kB / 417 MB, free: 1.613 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1364, allocations: 4 kB / 417 MB, free: 1.609 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1364, allocations: 3.938 kB / 417 MB, free: 1.605 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.1364, allocations: 0 / 417 MB, free: 1.605 MB / 346.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.0004427/0.1369, allocations: 355.5 kB / 417.3 MB, free: 1.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1369, allocations: 12.03 kB / 417.3 MB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.643e-05/0.137, allocations: 38.55 kB / 417.4 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.659e-05/0.137, allocations: 11.91 kB / 417.4 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.1372, allocations: 163 kB / 417.5 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.1372, allocations: 4 kB / 417.5 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.1372, allocations: 4 kB / 417.5 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.1374, allocations: 57.56 kB / 417.6 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.1374, allocations: 4 kB / 417.6 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.1374, allocations: 4 kB / 417.6 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1375, allocations: 4 kB / 417.6 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.1376, allocations: 23.98 kB / 417.6 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000241/0.1378, allocations: 173.6 kB / 417.8 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003221/0.1382, allocations: 54.59 kB / 417.9 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004094/0.1386, allocations: 121 kB / 418 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.1386, allocations: 38.56 kB / 418 MB, free: 380 kB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.983e-06/0.1387, allocations: 0 / 418 MB, free: 380 kB / 346.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.08311/0.2218, allocations: 2.816 MB / 420.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.2219, allocations: 51.41 kB / 420.9 MB, free: 13.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.222, allocations: 105.8 kB / 421 MB, free: 13.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.204e-05/0.2221, allocations: 29.7 kB / 421 MB, free: 13.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.277e-05/0.2221, allocations: 80.14 kB / 421.1 MB, free: 13.22 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.2222, allocations: 67.09 kB / 421.2 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.2e-05/0.2223, allocations: 4 kB / 421.2 MB, free: 13.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.2224, allocations: 322.8 kB / 421.5 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007246/0.2232, allocations: 187.9 kB / 421.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007137/0.2239, allocations: 183.9 kB / 421.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009557/0.2249, allocations: 227.3 kB / 422.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.2249, allocations: 0 / 422.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001963/0.2269, allocations: 493.3 kB / 422.5 MB, free: 11.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.881e-05/0.2269, allocations: 11.98 kB / 422.5 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.227, allocations: 0 / 422.5 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.227, allocations: 0 / 422.5 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007058/0.2277, allocations: 83.94 kB / 422.6 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.2277, allocations: 0 / 422.6 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004011/0.2281, allocations: 20.23 kB / 422.7 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-05/0.2282, allocations: 19.92 kB / 422.7 MB, free: 11.62 MB / 362.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.0001835/0.2284, allocations: 121.8 kB / 422.8 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.455e-05/0.2285, allocations: 19.84 kB / 422.8 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002381/0.2309, allocations: 0.5721 MB / 423.4 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.2309, allocations: 0 / 423.4 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.231, allocations: 3.953 kB / 423.4 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.231, allocations: 4 kB / 423.4 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00381/0.2348, allocations: 0.9522 MB / 424.3 MB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.2349, allocations: 0 / 424.3 MB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005612/0.2354, allocations: 79.88 kB / 424.4 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.2354, allocations: 0 / 424.4 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.226e-05/0.2355, allocations: 19.98 kB / 424.4 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.715e-06/0.2355, allocations: 7.938 kB / 424.4 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2355, allocations: 0 / 424.4 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.2373, allocations: 0.5604 MB / 425 MB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.796e-05/0.2374, allocations: 89.02 kB / 425.1 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.483e-05/0.2374, allocations: 4 kB / 425.1 MB, free: 9.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003761/0.2378, allocations: 31.97 kB / 425.1 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.571e-05/0.2379, allocations: 11.98 kB / 425.1 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-05/0.2379, allocations: 19.98 kB / 425.2 MB, free: 8.957 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.777e-05/0.238, allocations: 87.23 kB / 425.2 MB, free: 8.871 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.238, allocations: 0 / 425.2 MB, free: 8.871 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001326/0.2393, allocations: 312 kB / 425.6 MB, free: 8.566 MB / 362.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.004385/0.2437, allocations: 1.64 MB / 427.2 MB, free: 6.859 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.2454, allocations: 367.7 kB / 427.5 MB, free: 6.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.2454, allocations: 0 / 427.5 MB, free: 6.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000731/0.2462, allocations: 168.2 kB / 427.7 MB, free: 6.336 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/0.2464, allocations: 11.95 kB / 427.7 MB, free: 6.324 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003104/0.2495, allocations: 0.5564 MB / 428.3 MB, free: 5.707 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.2499, allocations: 0.6929 MB / 429 MB, free: 4.984 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006945/0.2506, allocations: 105.1 kB / 429.1 MB, free: 4.875 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.251, allocations: 55.41 kB / 429.1 MB, free: 4.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/0.251, allocations: 3.938 kB / 429.1 MB, free: 4.816 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1164/0.3674, allocations: 18.44 MB / 447.6 MB, free: 2.41 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002714/0.3677, allocations: 201.2 kB / 447.8 MB, free: 2.164 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.717/3.084, allocations: 0 / 447.8 MB, free: 2.164 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat