Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 104.4 kB / 16.35 MB, free: 5.875 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.001614/0.001614, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.301/1.301, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002153/0.002153, allocations: 286.6 kB / 291.4 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9231/0.9231, allocations: 169.2 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00304/0.00304, allocations: 94.75 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1616, allocations: 86.97 MB / 0.6816 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002389/0.164, allocations: 1.243 MB / 0.6828 GB, free: 6.188 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009481/0.165, allocations: 0.5916 MB / 0.6834 GB, free: 5.594 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.23e-05/0.165, allocations: 0 / 0.6834 GB, free: 5.594 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.258e-05/0.165, allocations: 0 / 0.6834 GB, free: 5.594 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.166e-05/0.1651, allocations: 3.938 kB / 0.6834 GB, free: 5.59 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.1656, allocations: 142.6 kB / 0.6835 GB, free: 5.453 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.819e-05/0.1657, allocations: 11.98 kB / 0.6835 GB, free: 5.441 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.935e-05/0.1657, allocations: 4 kB / 0.6835 GB, free: 5.438 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.673e-05/0.1658, allocations: 3.984 kB / 0.6835 GB, free: 5.434 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.511e-05/0.1658, allocations: 11.94 kB / 0.6836 GB, free: 5.422 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.1658, allocations: 0 / 0.6836 GB, free: 5.422 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004887/0.1663, allocations: 339.3 kB / 0.6839 GB, free: 5.09 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.457e-06/0.1663, allocations: 4 kB / 0.6839 GB, free: 5.086 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.968e-05/0.1664, allocations: 4 kB / 0.6839 GB, free: 5.082 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002478/0.1666, allocations: 139.6 kB / 0.684 GB, free: 4.945 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1666, allocations: 7.938 kB / 0.684 GB, free: 4.938 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1666, allocations: 0 / 0.684 GB, free: 4.938 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.1666, allocations: 0 / 0.684 GB, free: 4.938 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.0003502/0.167, allocations: 347.5 kB / 0.6844 GB, free: 4.547 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.167, allocations: 12.03 kB / 0.6844 GB, free: 4.535 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.677e-05/0.1671, allocations: 4.938 kB / 0.6844 GB, free: 4.531 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.1672, allocations: 164.4 kB / 0.6845 GB, free: 4.332 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.1672, allocations: 384 / 0.6845 GB, free: 4.332 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.084e-05/0.1672, allocations: 384 / 0.6845 GB, free: 4.332 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.226e-05/0.1673, allocations: 38.2 kB / 0.6846 GB, free: 4.289 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.1673, allocations: 192 / 0.6846 GB, free: 4.289 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.1673, allocations: 3.938 kB / 0.6846 GB, free: 4.285 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.1673, allocations: 4 kB / 0.6846 GB, free: 4.281 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.392e-05/0.1674, allocations: 0 / 0.6846 GB, free: 4.281 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001557/0.1675, allocations: 153.7 kB / 0.6847 GB, free: 4.082 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.283e-05/0.1676, allocations: 26.59 kB / 0.6848 GB, free: 4.047 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.962e-05/0.1676, allocations: 12.92 kB / 0.6848 GB, free: 4.031 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.1677, allocations: 0 / 0.6848 GB, free: 4.031 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.1677, allocations: 42.48 kB / 0.6848 GB, free: 3.98 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.1677, allocations: 3.938 kB / 0.6848 GB, free: 3.977 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001474/0.1678, allocations: 49.55 kB / 0.6849 GB, free: 3.922 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.1679, allocations: 51.41 kB / 0.6849 GB, free: 3.859 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.3e-05/0.168, allocations: 94.08 kB / 0.685 GB, free: 3.758 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.168, allocations: 29.73 kB / 0.685 GB, free: 3.723 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.464e-05/0.168, allocations: 84.12 kB / 0.6851 GB, free: 3.637 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.168, allocations: 4 kB / 0.6851 GB, free: 3.633 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.871e-05/0.1681, allocations: 13.72 kB / 0.6851 GB, free: 3.613 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.538e-05/0.1682, allocations: 310.8 kB / 0.6854 GB, free: 3.301 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.185e-05/0.1682, allocations: 0 / 0.6854 GB, free: 3.301 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.485e-05/0.1682, allocations: 7.938 kB / 0.6854 GB, free: 3.293 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.45e-05/0.1683, allocations: 16.92 kB / 0.6854 GB, free: 3.273 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1683, allocations: 0 / 0.6854 GB, free: 3.273 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.636e-05/0.1684, allocations: 45.59 kB / 0.6855 GB, free: 3.223 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.1684, allocations: 8 kB / 0.6855 GB, free: 3.215 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1684, allocations: 3.938 kB / 0.6855 GB, free: 3.211 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1684, allocations: 0 / 0.6855 GB, free: 3.211 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.1685, allocations: 11.98 kB / 0.6855 GB, free: 3.199 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003691/0.1689, allocations: 0.5899 MB / 0.6861 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.833e-05/0.169, allocations: 0 / 0.6861 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.169, allocations: 0 / 0.6861 GB, free: 2.586 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 7.379e-05/0.169, allocations: 114.8 kB / 0.6862 GB, free: 2.465 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-06/0.1691, allocations: 0 / 0.6862 GB, free: 2.465 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.1692, allocations: 48.75 kB / 0.6862 GB, free: 2.41 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1692, allocations: 0 / 0.6862 GB, free: 2.41 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.1692, allocations: 0 / 0.6862 GB, free: 2.41 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.1692, allocations: 4.125 kB / 0.6862 GB, free: 2.406 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.969e-05/0.1693, allocations: 161.6 kB / 0.6864 GB, free: 2.199 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1693, allocations: 3.938 kB / 0.6864 GB, free: 2.195 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.441e-05/0.1694, allocations: 11.98 kB / 0.6864 GB, free: 2.184 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1694, allocations: 0 / 0.6864 GB, free: 2.184 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-06/0.1694, allocations: 0 / 0.6864 GB, free: 2.184 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002752/0.1697, allocations: 0.5821 MB / 0.687 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1697, allocations: 4.031 kB / 0.687 GB, free: 1.574 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.689e-05/0.1698, allocations: 73 kB / 0.6871 GB, free: 1.484 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.276e-05/0.1698, allocations: 81.05 kB / 0.6871 GB, free: 1.387 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.044e-05/0.1698, allocations: 3.938 kB / 0.6871 GB, free: 1.383 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.451e-05/0.1699, allocations: 4 kB / 0.6871 GB, free: 1.379 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.462e-05/0.1699, allocations: 3.938 kB / 0.6871 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.1699, allocations: 0 / 0.6871 GB, free: 1.375 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.488e-05/0.1699, allocations: 87.31 kB / 0.6872 GB, free: 1.289 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1699, allocations: 0 / 0.6872 GB, free: 1.289 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001905/0.1701, allocations: 4 kB / 0.6872 GB, free: 1.285 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.0001638/0.1703, allocations: 111.2 kB / 0.6873 GB, free: 1.164 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001526/0.1705, allocations: 19.98 kB / 0.6874 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1705, allocations: 0 / 0.6874 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.625e-05/0.1706, allocations: 20.08 kB / 0.6874 GB, free: 1.125 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.1707, allocations: 9.375 kB / 0.6874 GB, free: 1.117 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002803/0.171, allocations: 98.17 kB / 0.6875 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.1712, allocations: 0.6729 MB / 0.6881 GB, free: 304 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.341e-05/0.1713, allocations: 0 / 0.6881 GB, free: 304 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.275e-05/0.1713, allocations: 7.438 kB / 0.6881 GB, free: 296 kB / 494.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1713, allocations: 0 / 0.6881 GB, free: 296 kB / 494.1 MB Notification: Performance of Templates: time 0.2327/0.404, allocations: 465.2 kB / 0.6886 GB, free: 17.82 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)