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.001201/0.001201, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001246/0.001246, allocations: 192.6 kB / 16.14 MB, free: 6.668 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.24/1.24, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001955/0.001955, allocations: 279.1 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.872/0.872, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 95.88 kB / 0.5946 GB, free: 28.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1318, allocations: 86.98 MB / 0.6796 GB, free: 1.062 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002957/0.1348, allocations: 1.295 MB / 0.6808 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.1361, allocations: 0.6139 MB / 0.6814 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.57e-05/0.1362, allocations: 0 / 0.6814 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.1362, allocations: 0 / 0.6814 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.231e-05/0.1363, allocations: 4.859 kB / 0.6814 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005382/0.1368, allocations: 112.3 kB / 0.6815 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.119e-05/0.1369, allocations: 12.5 kB / 0.6815 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.774e-05/0.1369, allocations: 0 / 0.6815 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.945e-05/0.1369, allocations: 9.328 kB / 0.6815 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.809e-05/0.137, allocations: 7.922 kB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.039e-05/0.137, allocations: 0 / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006237/0.1376, allocations: 344 kB / 0.6819 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.01e-05/0.1377, allocations: 0 / 0.6819 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.225e-05/0.1377, allocations: 11.98 kB / 0.6819 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002892/0.138, allocations: 139.9 kB / 0.682 GB, free: 14.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.138, allocations: 0 / 0.682 GB, free: 14.53 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.138, allocations: 0 / 0.682 GB, free: 14.53 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.427e-06/0.138, allocations: 0 / 0.682 GB, free: 14.53 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.0004518/0.1385, allocations: 352.9 kB / 0.6824 GB, free: 14.13 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1385, allocations: 12.03 kB / 0.6824 GB, free: 14.12 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.322e-05/0.1386, allocations: 34.73 kB / 0.6824 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.269e-05/0.1386, allocations: 0.9375 kB / 0.6824 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.1387, allocations: 160.4 kB / 0.6826 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.1388, allocations: 8.375 kB / 0.6826 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.1388, allocations: 8.375 kB / 0.6826 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.144e-05/0.1389, allocations: 26.27 kB / 0.6826 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1389, allocations: 7.938 kB / 0.6826 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.813e-06/0.1389, allocations: 0 / 0.6826 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1389, allocations: 0 / 0.6826 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.57e-05/0.139, allocations: 11.92 kB / 0.6826 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002441/0.1392, allocations: 149.6 kB / 0.6828 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.007e-05/0.1393, allocations: 30.59 kB / 0.6828 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.209e-05/0.1393, allocations: 12.8 kB / 0.6828 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.1393, allocations: 0 / 0.6828 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.1394, allocations: 34.62 kB / 0.6828 GB, free: 13.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.1394, allocations: 0 / 0.6828 GB, free: 13.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001445/0.1395, allocations: 45.58 kB / 0.6829 GB, free: 13.47 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.1396, allocations: 55.53 kB / 0.6829 GB, free: 13.41 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.639e-05/0.1397, allocations: 97.84 kB / 0.683 GB, free: 13.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.1397, allocations: 25.7 kB / 0.6831 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.1397, allocations: 80.14 kB / 0.6831 GB, free: 13.19 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.1398, allocations: 3.906 kB / 0.6831 GB, free: 13.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.256e-05/0.1398, allocations: 17.72 kB / 0.6832 GB, free: 13.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.14, allocations: 310.8 kB / 0.6834 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.691e-05/0.14, allocations: 4 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.499e-05/0.14, allocations: 8.109 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.1401, allocations: 12.86 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1401, allocations: 4 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.437e-05/0.1402, allocations: 41.58 kB / 0.6835 GB, free: 12.77 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1403, allocations: 7.938 kB / 0.6835 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.1403, allocations: 0 / 0.6835 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.1403, allocations: 0 / 0.6835 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.1405, allocations: 11.98 kB / 0.6835 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004039/0.1409, allocations: 0.5861 MB / 0.6841 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.446e-05/0.1409, allocations: 0 / 0.6841 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.1409, allocations: 4.031 kB / 0.6841 GB, free: 12.14 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 0.0001548/0.1411, allocations: 115 kB / 0.6842 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.978e-06/0.1411, allocations: 0 / 0.6842 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.1412, allocations: 48.91 kB / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1412, allocations: 0 / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1413, allocations: 4 kB / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1413, allocations: 3.984 kB / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001637/0.1414, allocations: 157.5 kB / 0.6844 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1415, allocations: 0 / 0.6844 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.812e-05/0.1415, allocations: 11.98 kB / 0.6844 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.1416, allocations: 4 kB / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.002e-06/0.1416, allocations: 0 / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004316/0.142, allocations: 0.5898 MB / 0.685 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.142, allocations: 7.875 kB / 0.685 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.175e-05/0.1421, allocations: 61.16 kB / 0.6851 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.395e-05/0.1422, allocations: 77.11 kB / 0.6852 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.1422, allocations: 8 kB / 0.6852 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.789e-05/0.1422, allocations: 0 / 0.6852 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.278e-05/0.1422, allocations: 8.062 kB / 0.6852 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.1422, allocations: 0 / 0.6852 GB, free: 10.93 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.001e-05/0.1423, allocations: 79.28 kB / 0.6852 GB, free: 10.85 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1423, allocations: 0 / 0.6852 GB, free: 10.85 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003061/0.1426, allocations: 15.98 kB / 0.6853 GB, free: 10.83 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.0004624/0.1431, allocations: 0.6086 MB / 0.6859 GB, free: 10.19 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001831/0.1433, allocations: 15.98 kB / 0.6859 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1433, allocations: 0 / 0.6859 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.1434, allocations: 23.92 kB / 0.6859 GB, free: 10.15 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.1436, allocations: 7.875 kB / 0.6859 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004951/0.1441, allocations: 152.7 kB / 0.686 GB, free: 9.957 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.1445, allocations: 0.677 MB / 0.6867 GB, free: 9.254 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.867e-05/0.1446, allocations: 0 / 0.6867 GB, free: 9.254 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.423e-05/0.1446, allocations: 7.438 kB / 0.6867 GB, free: 9.25 MB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1446, allocations: 0 / 0.6867 GB, free: 9.25 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01229/0.1569, allocations: 1.239 MB / 0.6879 GB, free: 8.242 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002735/0.1572, allocations: 281.3 kB / 0.6882 GB, free: 7.867 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.528/1.686, allocations: 4.062 kB / 0.6882 GB, free: 7.863 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)