Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001576/0.001576, allocations: 108.1 kB / 16.4 MB, free: 6.457 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.001811/0.001811, allocations: 193.2 kB / 17.34 MB, free: 5.715 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7768/0.7768, allocations: 122.9 MB / 414.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 72.17 kB / 0.568 GB, free: 28.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1466, allocations: 77.92 MB / 0.6441 GB, free: 9.523 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003094/0.1497, allocations: 1.453 MB / 0.6455 GB, free: 8.062 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.1512, allocations: 0.6277 MB / 0.6461 GB, free: 7.434 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.936e-05/0.1513, allocations: 0 / 0.6461 GB, free: 7.434 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.839e-05/0.1513, allocations: 7.922 kB / 0.6461 GB, free: 7.426 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.671e-05/0.1514, allocations: 11.92 kB / 0.6461 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008729/0.1523, allocations: 157.2 kB / 0.6463 GB, free: 7.262 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001279/0.1525, allocations: 51.83 kB / 0.6463 GB, free: 7.211 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.097e-05/0.1525, allocations: 4 kB / 0.6463 GB, free: 7.207 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.32e-05/0.1526, allocations: 31.86 kB / 0.6463 GB, free: 7.176 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.814e-05/0.1527, allocations: 23.91 kB / 0.6464 GB, free: 7.152 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.1527, allocations: 7.938 kB / 0.6464 GB, free: 7.145 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006192/0.1533, allocations: 339.4 kB / 0.6467 GB, free: 6.812 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.635e-05/0.1534, allocations: 23.91 kB / 0.6467 GB, free: 6.789 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.831e-05/0.1534, allocations: 23.86 kB / 0.6467 GB, free: 6.766 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.1538, allocations: 179.6 kB / 0.6469 GB, free: 6.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1538, allocations: 0 / 0.6469 GB, free: 6.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1538, allocations: 4 kB / 0.6469 GB, free: 6.586 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1538, allocations: 0 / 0.6469 GB, free: 6.586 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006962/0.1545, allocations: 402.9 kB / 0.6473 GB, free: 6.141 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.1546, allocations: 11.97 kB / 0.6473 GB, free: 6.129 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.487e-05/0.1546, allocations: 42.75 kB / 0.6474 GB, free: 6.078 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.1547, allocations: 0.9375 kB / 0.6474 GB, free: 6.078 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.1548, allocations: 172.3 kB / 0.6475 GB, free: 5.871 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.1549, allocations: 12.36 kB / 0.6475 GB, free: 5.859 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.371e-05/0.1549, allocations: 8.375 kB / 0.6475 GB, free: 5.852 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000247/0.1551, allocations: 74.22 kB / 0.6476 GB, free: 5.773 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.1552, allocations: 3.938 kB / 0.6476 GB, free: 5.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.1552, allocations: 0 / 0.6476 GB, free: 5.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1552, allocations: 4 kB / 0.6476 GB, free: 5.766 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002424/0.1554, allocations: 55.89 kB / 0.6477 GB, free: 5.711 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006255/0.1561, allocations: 320.7 kB / 0.648 GB, free: 5.348 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.1564, allocations: 90.44 kB / 0.6481 GB, free: 5.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.1565, allocations: 32.84 kB / 0.6481 GB, free: 5.215 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.137e-05/0.1566, allocations: 0 / 0.6481 GB, free: 5.215 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.1566, allocations: 42.5 kB / 0.6481 GB, free: 5.164 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.1566, allocations: 0 / 0.6481 GB, free: 5.164 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001747/0.1583, allocations: 0.6387 MB / 0.6488 GB, free: 4.434 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.1584, allocations: 55.39 kB / 0.6488 GB, free: 4.367 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.543e-05/0.1585, allocations: 105.8 kB / 0.6489 GB, free: 4.254 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.1585, allocations: 25.7 kB / 0.6489 GB, free: 4.223 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.244e-05/0.1586, allocations: 100.2 kB / 0.649 GB, free: 4.121 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.799e-05/0.1586, allocations: 51.47 kB / 0.6491 GB, free: 4.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.506e-05/0.1587, allocations: 29.7 kB / 0.6491 GB, free: 4.035 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1588, allocations: 314.8 kB / 0.6494 GB, free: 3.719 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.1589, allocations: 31.98 kB / 0.6494 GB, free: 3.688 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.1591, allocations: 42.78 kB / 0.6495 GB, free: 3.648 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.1593, allocations: 68.83 kB / 0.6496 GB, free: 3.578 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.1593, allocations: 0 / 0.6496 GB, free: 3.578 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003101/0.1596, allocations: 117.8 kB / 0.6497 GB, free: 3.457 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.1597, allocations: 4 kB / 0.6497 GB, free: 3.453 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1597, allocations: 0 / 0.6497 GB, free: 3.453 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1597, allocations: 0 / 0.6497 GB, free: 3.453 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.1598, allocations: 31.92 kB / 0.6497 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.1599, allocations: 7.938 kB / 0.6497 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.676e-05/0.1599, allocations: 7.984 kB / 0.6497 GB, free: 3.406 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.1599, allocations: 4 kB / 0.6497 GB, free: 3.402 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 9.647e-05/0.16, allocations: 113.8 kB / 0.6498 GB, free: 3.281 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.359e-05/0.1601, allocations: 7.953 kB / 0.6498 GB, free: 3.273 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003726/0.1605, allocations: 133.5 kB / 0.65 GB, free: 3.129 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1605, allocations: 4.188 kB / 0.65 GB, free: 3.125 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.1605, allocations: 3.938 kB / 0.65 GB, free: 3.121 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1605, allocations: 3.984 kB / 0.65 GB, free: 3.117 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005535/0.1611, allocations: 378.5 kB / 0.6503 GB, free: 2.691 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1611, allocations: 0 / 0.6503 GB, free: 2.691 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.1612, allocations: 35.91 kB / 0.6504 GB, free: 2.656 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.1612, allocations: 3.938 kB / 0.6504 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.1613, allocations: 0 / 0.6504 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1613, allocations: 0 / 0.6504 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1613, allocations: 0 / 0.6504 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005108/0.1618, allocations: 255.4 kB / 0.6506 GB, free: 2.387 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.148e-05/0.1618, allocations: 81.06 kB / 0.6507 GB, free: 2.289 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.1619, allocations: 7.938 kB / 0.6507 GB, free: 2.281 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.162, allocations: 11.98 kB / 0.6507 GB, free: 2.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.909e-05/0.162, allocations: 4 kB / 0.6507 GB, free: 2.266 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.162, allocations: 7.984 kB / 0.6507 GB, free: 2.258 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.887e-05/0.1621, allocations: 87.34 kB / 0.6508 GB, free: 2.172 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1621, allocations: 0 / 0.6508 GB, free: 2.172 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.1624, allocations: 35.88 kB / 0.6508 GB, free: 2.137 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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.0008877/0.1633, allocations: 0.8215 MB / 0.6516 GB, free: 1.289 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003447/0.1637, allocations: 86.27 kB / 0.6517 GB, free: 1.207 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1637, allocations: 0 / 0.6517 GB, free: 1.207 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.1638, allocations: 51.84 kB / 0.6518 GB, free: 1.156 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.1642, allocations: 9.875 kB / 0.6518 GB, free: 1.148 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.1664, allocations: 1.599 MB / 0.6533 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.1668, allocations: 0.6885 MB / 0.654 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.806e-05/0.1668, allocations: 20.64 kB / 0.654 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.708e-05/0.1669, allocations: 23.44 kB / 0.6541 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of SimCode: time 3.91e-07/0.1669, allocations: 0 / 0.6541 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.1894, allocations: 2.327 MB / 0.6563 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.683/7.873, allocations: 11.42 kB / 0.6563 GB, free: 12.55 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)