Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",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.001243/0.001243, allocations: 108.6 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 190.5 kB / 16.66 MB, free: 6.59 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002461/0.002461, allocations: 286.6 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9804/0.9804, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002705/0.002705, allocations: 99.91 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1595, allocations: 86.98 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.002273/0.1619, allocations: 1.282 MB / 0.7671 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009976/0.1629, allocations: 0.5877 MB / 0.7677 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.423e-05/0.1629, allocations: 0 / 0.7677 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.402e-05/0.163, allocations: 7.922 kB / 0.7677 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.225e-05/0.163, allocations: 3.984 kB / 0.7677 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000523/0.1636, allocations: 143.4 kB / 0.7679 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.541e-05/0.1636, allocations: 23.92 kB / 0.7679 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.092e-05/0.1637, allocations: 3.938 kB / 0.7679 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.333e-05/0.1637, allocations: 7.938 kB / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.782e-05/0.1638, allocations: 15.97 kB / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.1638, allocations: 4 kB / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005279/0.1643, allocations: 339.3 kB / 0.7682 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.048e-05/0.1643, allocations: 0 / 0.7682 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.1644, allocations: 11.92 kB / 0.7683 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.1647, allocations: 155.8 kB / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1647, allocations: 0 / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.082e-06/0.1647, allocations: 0 / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.1647, allocations: 0 / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004819/0.1652, allocations: 363 kB / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1652, allocations: 8.031 kB / 0.7688 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.62e-05/0.1653, allocations: 34.75 kB / 0.7688 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.232e-05/0.1653, allocations: 8.875 kB / 0.7688 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.1654, allocations: 164.4 kB / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.1654, allocations: 4.375 kB / 0.769 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.1655, allocations: 4.375 kB / 0.769 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.1656, allocations: 46.19 kB / 0.769 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.1656, allocations: 3.938 kB / 0.769 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.715e-06/0.1656, allocations: 0 / 0.769 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.1656, allocations: 0 / 0.769 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.866e-05/0.1657, allocations: 12 kB / 0.769 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003345/0.166, allocations: 264.9 kB / 0.7693 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.1662, allocations: 50.56 kB / 0.7693 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.871e-05/0.1663, allocations: 20.84 kB / 0.7693 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.1663, allocations: 0 / 0.7693 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.1663, allocations: 38.56 kB / 0.7694 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.1663, allocations: 0 / 0.7694 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4): time 0.000168/0.1665, allocations: 53.62 kB / 0.7694 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.1665, allocations: 55.41 kB / 0.7695 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.443e-05/0.1666, allocations: 101.8 kB / 0.7696 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.1666, allocations: 25.7 kB / 0.7696 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.831e-05/0.1667, allocations: 84.14 kB / 0.7697 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.1667, allocations: 19.83 kB / 0.7697 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-05/0.1668, allocations: 21.7 kB / 0.7697 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1669, allocations: 310.8 kB / 0.77 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.998e-05/0.1669, allocations: 4 kB / 0.77 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.478e-05/0.167, allocations: 29.7 kB / 0.7701 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.249e-05/0.167, allocations: 33.66 kB / 0.7701 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.167, allocations: 3.938 kB / 0.7701 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.333e-05/0.1671, allocations: 53.64 kB / 0.7701 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.1671, allocations: 8 kB / 0.7702 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1671, allocations: 0 / 0.7702 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.1672, allocations: 0 / 0.7702 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.277e-05/0.1672, allocations: 19.91 kB / 0.7702 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.1672, allocations: 0 / 0.7702 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.41e-05/0.1673, allocations: 4 kB / 0.7702 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.1673, allocations: 7.984 kB / 0.7702 GB, free: 4.285 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * 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 7.43e-05/0.1674, allocations: 110.4 kB / 0.7703 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.401e-05/0.1674, allocations: 4 kB / 0.7703 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/0.1675, allocations: 53.19 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.1675, allocations: 4 kB / 0.7703 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.1676, allocations: 4 kB / 0.7704 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1676, allocations: 3.938 kB / 0.7704 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001716/0.1677, allocations: 161.6 kB / 0.7705 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1677, allocations: 3.938 kB / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.207e-05/0.1678, allocations: 15.98 kB / 0.7705 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1678, allocations: 0 / 0.7705 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.1678, allocations: 0 / 0.7705 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1678, allocations: 0 / 0.7705 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1678, allocations: 0 / 0.7705 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001358/0.168, allocations: 152 kB / 0.7707 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.03e-05/0.168, allocations: 77.11 kB / 0.7707 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.168, allocations: 4.125 kB / 0.7708 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.06e-05/0.1681, allocations: 4.047 kB / 0.7708 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.303e-05/0.1681, allocations: 7.969 kB / 0.7708 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-06/0.1681, allocations: 4 kB / 0.7708 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.751e-05/0.1682, allocations: 75.28 kB / 0.7708 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1682, allocations: 0 / 0.7708 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002529/0.1684, allocations: 27.88 kB / 0.7709 GB, free: 3.488 MB / 0.5606 GB 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 (4): * Single equations (assignments): 4 * 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.0005266/0.169, allocations: 0.705 MB / 0.7716 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001091/0.1691, allocations: 19.94 kB / 0.7716 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1691, allocations: 0 / 0.7716 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.286e-05/0.1691, allocations: 15.98 kB / 0.7716 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002041/0.1693, allocations: 12 kB / 0.7716 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004322/0.1698, allocations: 152.1 kB / 0.7717 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.1701, allocations: 0.6768 MB / 0.7724 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.049e-05/0.1701, allocations: 4 kB / 0.7724 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.689e-05/0.1701, allocations: 7.438 kB / 0.7724 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.1701, allocations: 4 kB / 0.7724 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/0.1922, allocations: 1.413 MB / 0.7738 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.713/7.905, allocations: 20.88 kB / 0.7738 GB, free: 0.5195 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe 2>&1)