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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_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.001165/0.001165, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001193/0.001193, allocations: 189.7 kB / 16.25 MB, free: 6.617 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.227/1.227, allocations: 222.9 MB / 239.9 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001928/0.001928, allocations: 295.1 kB / 290.4 MB, free: 2.051 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8772/0.8772, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 95.72 kB / 0.5948 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.132, allocations: 86.99 MB / 0.6797 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002095/0.1341, allocations: 1.301 MB / 0.681 GB, free: 15.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008255/0.1349, allocations: 0.5849 MB / 0.6816 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.819e-05/0.135, allocations: 0.6562 kB / 0.6816 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.328e-05/0.135, allocations: 0 / 0.6816 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.353e-05/0.135, allocations: 0.875 kB / 0.6816 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004274/0.1355, allocations: 128.4 kB / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.551e-05/0.1355, allocations: 12.7 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.227e-05/0.1356, allocations: 4 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.292e-05/0.1356, allocations: 1.906 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.112e-05/0.1356, allocations: 7.938 kB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.205e-06/0.1356, allocations: 0 / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004254/0.1361, allocations: 347.3 kB / 0.6821 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.287e-06/0.1361, allocations: 3.984 kB / 0.6821 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.366e-05/0.1361, allocations: 4 kB / 0.6821 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.1363, allocations: 143.9 kB / 0.6822 GB, free: 14.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1363, allocations: 0 / 0.6822 GB, free: 14.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1363, allocations: 0 / 0.6822 GB, free: 14.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.686e-06/0.1363, allocations: 0 / 0.6822 GB, free: 14.41 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.0003155/0.1366, allocations: 347.5 kB / 0.6825 GB, free: 14.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.1367, allocations: 12.03 kB / 0.6825 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.815e-05/0.1367, allocations: 30.75 kB / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.76e-05/0.1367, allocations: 0.9375 kB / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.217e-05/0.1368, allocations: 168.4 kB / 0.6827 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.1368, allocations: 4.375 kB / 0.6827 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.744e-06/0.1369, allocations: 4.312 kB / 0.6827 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.752e-05/0.1369, allocations: 34.27 kB / 0.6828 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.1369, allocations: 3.938 kB / 0.6828 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.18e-06/0.137, allocations: 0 / 0.6828 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-06/0.137, allocations: 0 / 0.6828 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.324e-05/0.137, allocations: 7.938 kB / 0.6828 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001287/0.1371, allocations: 157.5 kB / 0.6829 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.043e-05/0.1372, allocations: 30.59 kB / 0.683 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.572e-05/0.1372, allocations: 8.797 kB / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.1372, allocations: 64 / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.1372, allocations: 38.56 kB / 0.683 GB, free: 13.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 7.62e-07/0.1372, allocations: 0 / 0.683 GB, free: 13.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001068/0.1374, allocations: 41.62 kB / 0.6831 GB, free: 13.36 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.1374, allocations: 55.53 kB / 0.6831 GB, free: 13.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.407e-05/0.1375, allocations: 97.86 kB / 0.6832 GB, free: 13.19 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.1375, allocations: 25.7 kB / 0.6832 GB, free: 13.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.32e-05/0.1375, allocations: 80.14 kB / 0.6833 GB, free: 13.08 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.1375, allocations: 11.89 kB / 0.6833 GB, free: 13.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.1376, allocations: 13.72 kB / 0.6833 GB, free: 13.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.1377, allocations: 310.8 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.388e-05/0.1377, allocations: 12.06 kB / 0.6836 GB, free: 12.72 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.546e-06/0.1377, allocations: 4 kB / 0.6836 GB, free: 12.72 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.831e-05/0.1377, allocations: 16.86 kB / 0.6837 GB, free: 12.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1377, allocations: 0 / 0.6837 GB, free: 12.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.455e-05/0.1378, allocations: 37.69 kB / 0.6837 GB, free: 12.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.1378, allocations: 7.938 kB / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.1378, allocations: 0 / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.035e-06/0.1378, allocations: 0 / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.138, allocations: 11.98 kB / 0.6837 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003127/0.1383, allocations: 0.5861 MB / 0.6843 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.961e-05/0.1383, allocations: 4.031 kB / 0.6843 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-06/0.1383, allocations: 4 kB / 0.6843 GB, free: 12.02 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 5.577e-05/0.1384, allocations: 111.1 kB / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.702e-06/0.1384, allocations: 0 / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.463e-05/0.1385, allocations: 48.91 kB / 0.6844 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1385, allocations: 7.938 kB / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1385, allocations: 0 / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.1385, allocations: 0 / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.944e-05/0.1386, allocations: 153.5 kB / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1386, allocations: 4 kB / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.104e-05/0.1387, allocations: 8 kB / 0.6846 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1387, allocations: 0 / 0.6846 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.1387, allocations: 11.88 kB / 0.6846 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002601/0.139, allocations: 0.5899 MB / 0.6852 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.139, allocations: 7.922 kB / 0.6852 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.895e-05/0.139, allocations: 61.11 kB / 0.6853 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.809e-05/0.1391, allocations: 85.09 kB / 0.6853 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.877e-06/0.1391, allocations: 0 / 0.6853 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.508e-05/0.1391, allocations: 4.125 kB / 0.6853 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.007e-05/0.1391, allocations: 3.938 kB / 0.6853 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.1391, allocations: 0 / 0.6853 GB, free: 10.81 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.704e-05/0.1392, allocations: 79.28 kB / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1392, allocations: 0 / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001901/0.1394, allocations: 12 kB / 0.6854 GB, free: 10.72 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.0003423/0.1397, allocations: 0.6126 MB / 0.686 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001425/0.1399, allocations: 19.92 kB / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1399, allocations: 0 / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.685e-05/0.14, allocations: 19.98 kB / 0.6861 GB, free: 10.04 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.1401, allocations: 3.938 kB / 0.6861 GB, free: 10.03 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003407/0.1405, allocations: 139.9 kB / 0.6862 GB, free: 9.855 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002006/0.1407, allocations: 0.6729 MB / 0.6869 GB, free: 9.156 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.281e-05/0.1407, allocations: 0 / 0.6869 GB, free: 9.156 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.671e-05/0.1407, allocations: 7.438 kB / 0.6869 GB, free: 9.152 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1407, allocations: 3.938 kB / 0.6869 GB, free: 9.148 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01043/0.1512, allocations: 1.294 MB / 0.6881 GB, free: 8.113 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.1514, allocations: 279.2 kB / 0.6884 GB, free: 7.738 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.607/1.759, allocations: 4 kB / 0.6884 GB, free: 7.734 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)