Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 105.5 kB / 16.41 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 191.9 kB / 17.34 MB, free: 5.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7903/0.7903, allocations: 122.9 MB / 414.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 72.59 kB / 0.568 GB, free: 28.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1411, allocations: 77.94 MB / 0.6441 GB, free: 9.504 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002397/0.1435, allocations: 1.249 MB / 0.6453 GB, free: 8.246 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.1445, allocations: 0.6269 MB / 0.6459 GB, free: 7.617 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.025e-05/0.1446, allocations: 0 / 0.6459 GB, free: 7.617 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.925e-05/0.1446, allocations: 7.938 kB / 0.6459 GB, free: 7.609 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.127e-05/0.1446, allocations: 7.922 kB / 0.6459 GB, free: 7.602 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000535/0.1452, allocations: 149.2 kB / 0.6461 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.119e-05/0.1453, allocations: 27.92 kB / 0.6461 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.769e-05/0.1453, allocations: 3.984 kB / 0.6461 GB, free: 7.426 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.504e-05/0.1453, allocations: 15.94 kB / 0.6461 GB, free: 7.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.528e-05/0.1454, allocations: 11.98 kB / 0.6461 GB, free: 7.398 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.1454, allocations: 3.938 kB / 0.6461 GB, free: 7.395 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000483/0.1459, allocations: 351.3 kB / 0.6464 GB, free: 7.051 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.361e-05/0.1459, allocations: 4 kB / 0.6465 GB, free: 7.047 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.856e-05/0.146, allocations: 15.92 kB / 0.6465 GB, free: 7.031 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002562/0.1462, allocations: 151.8 kB / 0.6466 GB, free: 6.883 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1462, allocations: 3.984 kB / 0.6466 GB, free: 6.879 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1462, allocations: 0 / 0.6466 GB, free: 6.879 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1462, allocations: 0 / 0.6466 GB, free: 6.879 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004448/0.1467, allocations: 371 kB / 0.647 GB, free: 6.465 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1467, allocations: 12.61 kB / 0.647 GB, free: 6.453 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.1468, allocations: 34.75 kB / 0.647 GB, free: 6.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.751e-05/0.1468, allocations: 4.938 kB / 0.647 GB, free: 6.406 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.147, allocations: 164.3 kB / 0.6472 GB, free: 6.207 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.147, allocations: 8.375 kB / 0.6472 GB, free: 6.199 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.19e-05/0.147, allocations: 4.375 kB / 0.6472 GB, free: 6.195 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.1471, allocations: 46.25 kB / 0.6472 GB, free: 6.145 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.1472, allocations: 7.922 kB / 0.6472 GB, free: 6.137 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.1472, allocations: 7.938 kB / 0.6472 GB, free: 6.129 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1472, allocations: 0 / 0.6472 GB, free: 6.129 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.063e-05/0.1473, allocations: 19.98 kB / 0.6473 GB, free: 6.109 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001691/0.1474, allocations: 169.6 kB / 0.6474 GB, free: 5.895 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.1476, allocations: 62.62 kB / 0.6475 GB, free: 5.824 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.523e-05/0.1476, allocations: 28.84 kB / 0.6475 GB, free: 5.793 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.1476, allocations: 0 / 0.6475 GB, free: 5.793 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.1477, allocations: 42.44 kB / 0.6476 GB, free: 5.742 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.1477, allocations: 0 / 0.6476 GB, free: 5.742 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.00109/0.1488, allocations: 0.5914 MB / 0.6481 GB, free: 5.059 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.1488, allocations: 51.41 kB / 0.6482 GB, free: 4.996 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.578e-05/0.1489, allocations: 93.86 kB / 0.6483 GB, free: 4.895 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.1489, allocations: 29.7 kB / 0.6483 GB, free: 4.859 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.835e-05/0.1489, allocations: 84.27 kB / 0.6484 GB, free: 4.773 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.812e-05/0.149, allocations: 43.56 kB / 0.6484 GB, free: 4.73 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.086e-05/0.149, allocations: 33.7 kB / 0.6485 GB, free: 4.691 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.1491, allocations: 314.8 kB / 0.6488 GB, free: 4.375 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.132e-05/0.1492, allocations: 19.98 kB / 0.6488 GB, free: 4.355 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.673e-05/0.1492, allocations: 23.98 kB / 0.6488 GB, free: 4.332 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.502e-05/0.1493, allocations: 51.73 kB / 0.6488 GB, free: 4.281 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.1493, allocations: 0 / 0.6488 GB, free: 4.281 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001473/0.1495, allocations: 113.5 kB / 0.649 GB, free: 4.164 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.1495, allocations: 7.984 kB / 0.649 GB, free: 4.156 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1495, allocations: 0 / 0.649 GB, free: 4.156 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.1495, allocations: 0 / 0.649 GB, free: 4.156 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.1496, allocations: 20 kB / 0.649 GB, free: 4.137 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.1496, allocations: 0 / 0.649 GB, free: 4.137 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.604e-05/0.1497, allocations: 4 kB / 0.649 GB, free: 4.133 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.1497, allocations: 12.3 kB / 0.649 GB, free: 4.121 MB / 494.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 (13): * Single equations (assignments): 13 * 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 8.566e-05/0.1498, allocations: 122.7 kB / 0.6491 GB, free: 3.992 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.691e-05/0.1498, allocations: 11.92 kB / 0.6491 GB, free: 3.98 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001839/0.15, allocations: 109.5 kB / 0.6492 GB, free: 3.863 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.15, allocations: 0 / 0.6492 GB, free: 3.863 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.15, allocations: 0 / 0.6492 GB, free: 3.863 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.15, allocations: 3.984 kB / 0.6492 GB, free: 3.859 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003749/0.1504, allocations: 350.5 kB / 0.6496 GB, free: 3.461 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1504, allocations: 3.984 kB / 0.6496 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.1505, allocations: 16 kB / 0.6496 GB, free: 3.441 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.798e-06/0.1505, allocations: 4 kB / 0.6496 GB, free: 3.438 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.1505, allocations: 0 / 0.6496 GB, free: 3.438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1506, allocations: 4 kB / 0.6496 GB, free: 3.434 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1506, allocations: 0 / 0.6496 GB, free: 3.434 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.1508, allocations: 227.3 kB / 0.6498 GB, free: 3.195 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.548e-05/0.1508, allocations: 77.11 kB / 0.6499 GB, free: 3.102 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/0.1509, allocations: 0 / 0.6499 GB, free: 3.102 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.909e-05/0.151, allocations: 8.031 kB / 0.6499 GB, free: 3.094 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.699e-05/0.151, allocations: 7.984 kB / 0.6499 GB, free: 3.086 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.151, allocations: 64 / 0.6499 GB, free: 3.086 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.171e-05/0.1511, allocations: 87.28 kB / 0.65 GB, free: 3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1511, allocations: 0 / 0.65 GB, free: 3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002595/0.1513, allocations: 35.95 kB / 0.65 GB, free: 2.965 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_comp) * 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 (11): * Single equations (assignments): 11 * 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.0005468/0.1519, allocations: 0.7913 MB / 0.6508 GB, free: 2.148 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001481/0.152, allocations: 60.69 kB / 0.6508 GB, free: 2.09 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.152, allocations: 0 / 0.6508 GB, free: 2.09 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.043e-05/0.1521, allocations: 39.86 kB / 0.6509 GB, free: 2.051 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002132/0.1523, allocations: 8.828 kB / 0.6509 GB, free: 2.043 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.1537, allocations: 1.516 MB / 0.6524 GB, free: 460 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002421/0.154, allocations: 0.6846 MB / 0.653 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.98e-05/0.154, allocations: 11.98 kB / 0.6531 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.859e-05/0.1541, allocations: 22.39 kB / 0.6531 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1541, allocations: 0 / 0.6531 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.1719, allocations: 2.059 MB / 0.6551 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.631/7.803, allocations: 15 kB / 0.6551 GB, free: 13.81 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)