Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.InvertingBasicFlowFunction_m_flow,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.001211/0.001215, allocations: 111.3 kB / 16.41 MB, free: 6.496 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.001227/0.001227, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.373/1.373, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7601/0.7601, allocations: 122.9 MB / 414.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 68.64 kB / 0.568 GB, free: 28.85 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1553, allocations: 77.93 MB / 0.6441 GB, free: 9.582 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002587/0.1579, allocations: 1.235 MB / 0.6453 GB, free: 8.336 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.1591, allocations: 0.5919 MB / 0.6458 GB, free: 7.742 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.217e-05/0.1591, allocations: 0 / 0.6458 GB, free: 7.742 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.447e-05/0.1592, allocations: 3.938 kB / 0.6458 GB, free: 7.738 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.503e-05/0.1592, allocations: 0 / 0.6458 GB, free: 7.738 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006946/0.1599, allocations: 137.4 kB / 0.646 GB, free: 7.605 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.72e-05/0.16, allocations: 7.938 kB / 0.646 GB, free: 7.598 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.577e-05/0.1601, allocations: 11.98 kB / 0.646 GB, free: 7.586 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.28e-05/0.1601, allocations: 7.922 kB / 0.646 GB, free: 7.578 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.074e-05/0.1602, allocations: 8 kB / 0.646 GB, free: 7.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.117e-05/0.1602, allocations: 0 / 0.646 GB, free: 7.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005798/0.1608, allocations: 343.3 kB / 0.6463 GB, free: 7.234 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.226e-05/0.1608, allocations: 7.922 kB / 0.6463 GB, free: 7.227 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.345e-05/0.1608, allocations: 0 / 0.6463 GB, free: 7.227 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.1611, allocations: 143.9 kB / 0.6465 GB, free: 7.086 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1611, allocations: 0 / 0.6465 GB, free: 7.086 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1611, allocations: 0 / 0.6465 GB, free: 7.086 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1611, allocations: 0 / 0.6465 GB, free: 7.086 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004285/0.1616, allocations: 368.7 kB / 0.6468 GB, free: 6.676 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.1616, allocations: 12.62 kB / 0.6468 GB, free: 6.664 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.099e-05/0.1617, allocations: 30.75 kB / 0.6469 GB, free: 6.625 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.278e-05/0.1617, allocations: 0.9375 kB / 0.6469 GB, free: 6.625 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.1618, allocations: 160.4 kB / 0.647 GB, free: 6.43 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.1618, allocations: 4.375 kB / 0.647 GB, free: 6.426 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-06/0.1618, allocations: 384 / 0.647 GB, free: 6.426 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.415e-05/0.1619, allocations: 34.25 kB / 0.6471 GB, free: 6.387 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.162, allocations: 7.938 kB / 0.6471 GB, free: 6.379 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.162, allocations: 0 / 0.6471 GB, free: 6.379 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.162, allocations: 0 / 0.6471 GB, free: 6.379 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.664e-05/0.162, allocations: 8 kB / 0.6471 GB, free: 6.371 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000149/0.1622, allocations: 145.6 kB / 0.6472 GB, free: 6.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.842e-05/0.1622, allocations: 30.59 kB / 0.6472 GB, free: 6.141 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.748e-05/0.1622, allocations: 4.859 kB / 0.6472 GB, free: 6.133 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.1623, allocations: 4 kB / 0.6473 GB, free: 6.129 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.1623, allocations: 34.62 kB / 0.6473 GB, free: 6.086 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1623, allocations: 0 / 0.6473 GB, free: 6.086 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.000143/0.1624, allocations: 45.58 kB / 0.6473 GB, free: 6.035 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/0.1625, allocations: 51.41 kB / 0.6474 GB, free: 5.973 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.989e-05/0.1626, allocations: 97.84 kB / 0.6475 GB, free: 5.867 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.1626, allocations: 25.7 kB / 0.6475 GB, free: 5.836 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.925e-05/0.1626, allocations: 92.33 kB / 0.6476 GB, free: 5.742 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.193e-05/0.1626, allocations: 3.953 kB / 0.6476 GB, free: 5.738 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.1627, allocations: 13.72 kB / 0.6476 GB, free: 5.719 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.767e-05/0.1628, allocations: 310.8 kB / 0.6479 GB, free: 5.406 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.741e-05/0.1628, allocations: 11.98 kB / 0.6479 GB, free: 5.395 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.684e-06/0.1628, allocations: 0 / 0.6479 GB, free: 5.395 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.846e-05/0.1628, allocations: 12.86 kB / 0.6479 GB, free: 5.379 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1629, allocations: 64 / 0.6479 GB, free: 5.379 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.403e-05/0.1629, allocations: 53.59 kB / 0.648 GB, free: 5.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.163, allocations: 11.88 kB / 0.648 GB, free: 5.309 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.163, allocations: 0 / 0.648 GB, free: 5.309 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.163, allocations: 0 / 0.648 GB, free: 5.309 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.1631, allocations: 11.98 kB / 0.648 GB, free: 5.297 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003432/0.1635, allocations: 0.5782 MB / 0.6486 GB, free: 4.695 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.335e-05/0.1635, allocations: 8.156 kB / 0.6486 GB, free: 4.688 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.1635, allocations: 0 / 0.6486 GB, free: 4.688 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.456e-05/0.1636, allocations: 109.8 kB / 0.6487 GB, free: 4.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.859e-06/0.1636, allocations: 3.984 kB / 0.6487 GB, free: 4.566 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.1638, allocations: 44.77 kB / 0.6487 GB, free: 4.516 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1638, allocations: 4 kB / 0.6487 GB, free: 4.512 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1638, allocations: 0 / 0.6487 GB, free: 4.512 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1638, allocations: 3.984 kB / 0.6487 GB, free: 4.508 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.1639, allocations: 153.7 kB / 0.6489 GB, free: 4.309 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1639, allocations: 4 kB / 0.6489 GB, free: 4.305 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.055e-05/0.164, allocations: 11.98 kB / 0.6489 GB, free: 4.293 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.164, allocations: 0 / 0.6489 GB, free: 4.293 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.164, allocations: 0 / 0.6489 GB, free: 4.293 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003411/0.1644, allocations: 0.5898 MB / 0.6495 GB, free: 3.68 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1644, allocations: 3.938 kB / 0.6495 GB, free: 3.676 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.959e-05/0.1645, allocations: 66.38 kB / 0.6495 GB, free: 3.594 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.552e-05/0.1645, allocations: 89.03 kB / 0.6496 GB, free: 3.488 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.1645, allocations: 0 / 0.6496 GB, free: 3.488 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.769e-05/0.1646, allocations: 4 kB / 0.6496 GB, free: 3.484 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.1646, allocations: 3.938 kB / 0.6496 GB, free: 3.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.1646, allocations: 0 / 0.6496 GB, free: 3.48 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.065e-05/0.1647, allocations: 83.27 kB / 0.6497 GB, free: 3.398 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1647, allocations: 8.062 kB / 0.6497 GB, free: 3.391 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002091/0.1649, allocations: 8 kB / 0.6497 GB, free: 3.383 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004507/0.1653, allocations: 0.6085 MB / 0.6503 GB, free: 2.742 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001711/0.1655, allocations: 24.02 kB / 0.6503 GB, free: 2.719 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1655, allocations: 0 / 0.6503 GB, free: 2.719 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.333e-05/0.1656, allocations: 15.98 kB / 0.6504 GB, free: 2.703 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001497/0.1658, allocations: 3.938 kB / 0.6504 GB, free: 2.699 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004083/0.1662, allocations: 139.6 kB / 0.6505 GB, free: 2.523 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002325/0.1664, allocations: 0.6729 MB / 0.6511 GB, free: 1.824 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.768e-05/0.1665, allocations: 12.06 kB / 0.6512 GB, free: 1.812 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.314e-05/0.1665, allocations: 7.438 kB / 0.6512 GB, free: 1.805 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1665, allocations: 0 / 0.6512 GB, free: 1.805 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.1851, allocations: 1.384 MB / 0.6525 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.17, allocations: 19.2 kB / 0.6525 GB, free: 0.5977 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)