Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001793/0.001793, allocations: 103.8 kB / 17.63 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00224/0.00224, allocations: 210.4 kB / 18.58 MB, free: 4.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.232/0.232, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002224/0.002224, allocations: 84.55 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1356, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.002474/0.1382, allocations: 0.5333 MB / 480.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009717/0.1392, allocations: 373.4 kB / 481.1 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.726e-05/0.1392, allocations: 0 / 481.1 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.117e-05/0.1393, allocations: 0 / 481.1 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.741e-05/0.1393, allocations: 3.938 kB / 481.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005466/0.1399, allocations: 99.66 kB / 481.2 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.165e-05/0.14, allocations: 23.92 kB / 481.2 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.675e-05/0.14, allocations: 8 kB / 481.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.647e-05/0.1401, allocations: 19.91 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.708e-05/0.1402, allocations: 19.92 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.1402, allocations: 0 / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003284/0.1406, allocations: 119.9 kB / 481.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.098e-05/0.1406, allocations: 7.922 kB / 481.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.874e-05/0.1406, allocations: 15.88 kB / 481.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002727/0.1409, allocations: 104 kB / 481.5 MB, free: 3.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.1409, allocations: 0 / 481.5 MB, free: 3.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1409, allocations: 0 / 481.5 MB, free: 3.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.141, allocations: 4 kB / 481.5 MB, free: 3.82 MB / 350.1 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.0006098/0.1416, allocations: 359.5 kB / 481.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.545e-05/0.1417, allocations: 8.031 kB / 481.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.1418, allocations: 34.75 kB / 481.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.924e-05/0.1419, allocations: 8.844 kB / 481.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.1421, allocations: 172.3 kB / 482.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.1421, allocations: 384 / 482.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.1421, allocations: 8.375 kB / 482.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001724/0.1423, allocations: 54.17 kB / 482.2 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.1423, allocations: 11.94 kB / 482.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.1424, allocations: 0 / 482.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.1424, allocations: 8 kB / 482.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.485e-05/0.1425, allocations: 23.98 kB / 482.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002906/0.1428, allocations: 165.6 kB / 482.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.1431, allocations: 62.58 kB / 482.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.743e-05/0.1432, allocations: 28.84 kB / 482.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003649/0.1435, allocations: 105.1 kB / 482.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.1436, allocations: 30.56 kB / 482.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.1436, allocations: 0 / 482.6 MB, free: 2.57 MB / 350.1 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.07253/0.2161, allocations: 2.579 MB / 485.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/0.2163, allocations: 55.39 kB / 485.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.2164, allocations: 101.9 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.427e-05/0.2165, allocations: 29.7 kB / 485.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.272e-05/0.2166, allocations: 84.14 kB / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.2167, allocations: 63.09 kB / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.217, allocations: 57.69 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002243/0.2172, allocations: 326.8 kB / 485.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007313/0.218, allocations: 171.8 kB / 486 MB, free: 15.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007468/0.2187, allocations: 179.9 kB / 486.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002108/0.2209, allocations: 411.3 kB / 486.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2209, allocations: 0 / 486.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002064/0.223, allocations: 461.3 kB / 487.1 MB, free: 14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.223, allocations: 8 kB / 487.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.223, allocations: 0 / 487.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.2231, allocations: 0 / 487.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000749/0.2238, allocations: 79.88 kB / 487.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.2239, allocations: 0 / 487.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003955/0.2243, allocations: 15.98 kB / 487.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.987e-05/0.2244, allocations: 23.97 kB / 487.2 MB, free: 13.88 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002152/0.2246, allocations: 121.7 kB / 487.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.863e-05/0.2247, allocations: 8.625 kB / 487.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002748/0.2275, allocations: 0.5506 MB / 487.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.2275, allocations: 4 kB / 487.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2275, allocations: 0 / 487.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.2275, allocations: 0 / 487.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004135/0.2317, allocations: 0.8814 MB / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.2317, allocations: 0 / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005689/0.2323, allocations: 67.88 kB / 488.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.575e-06/0.2323, allocations: 4.188 kB / 488.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.97e-05/0.2324, allocations: 23.98 kB / 488.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.568e-06/0.2324, allocations: 4 kB / 488.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.2324, allocations: 0 / 488.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001831/0.2343, allocations: 468.2 kB / 489.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.2344, allocations: 85.02 kB / 489.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.285e-05/0.2345, allocations: 4 kB / 489.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003896/0.2349, allocations: 23.97 kB / 489.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.235, allocations: 19.92 kB / 489.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.677e-05/0.235, allocations: 15.98 kB / 489.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.643e-05/0.2351, allocations: 83.28 kB / 489.5 MB, free: 11.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.2351, allocations: 0 / 489.5 MB, free: 11.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001549/0.2367, allocations: 319.9 kB / 489.8 MB, free: 11.09 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004381/0.2411, allocations: 1.115 MB / 491 MB, free: 9.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.2428, allocations: 343.7 kB / 491.3 MB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/0.2428, allocations: 0 / 491.3 MB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005944/0.2434, allocations: 147.8 kB / 491.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004723/0.2439, allocations: 8.375 kB / 491.4 MB, free: 9.441 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.2469, allocations: 0.4999 MB / 491.9 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004456/0.2473, allocations: 0.6965 MB / 492.6 MB, free: 8.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005767/0.2479, allocations: 89.08 kB / 492.7 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002756/0.2482, allocations: 66.89 kB / 492.8 MB, free: 8.004 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.2482, allocations: 0 / 492.8 MB, free: 8.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04947/0.2977, allocations: 18.93 MB / 0.4997 GB, free: 5.199 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.034/8.332, allocations: 11.3 kB / 0.4997 GB, free: 5.191 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1)