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.0008847/0.0008848, allocations: 96.62 kB / 15.36 MB, free: 0.7344 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.005029/0.005029, allocations: 169.9 kB / 16.27 MB, free: 6.648 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.243/1.243, allocations: 223.2 MB / 240.3 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001692/0.001692, allocations: 270.9 kB / 291.7 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8822/0.8822, allocations: 169.5 MB / 0.5004 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000401/0.000401, allocations: 17.48 kB / 0.5988 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1319, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001131/0.1331, allocations: 0.965 MB / 0.6862 GB, free: 14 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008793/0.1339, allocations: 0.5994 MB / 0.6868 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.117e-05/0.134, allocations: 0 / 0.6868 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.29e-05/0.134, allocations: 0.5 kB / 0.6868 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.357e-05/0.134, allocations: 5.188 kB / 0.6868 GB, free: 13.4 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003692/0.1344, allocations: 115 kB / 0.6869 GB, free: 13.29 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.437e-05/0.1344, allocations: 11.92 kB / 0.6869 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.199e-05/0.1345, allocations: 5.281 kB / 0.6869 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.446e-05/0.1345, allocations: 0 / 0.6869 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.43e-05/0.1346, allocations: 15.92 kB / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.706e-06/0.1346, allocations: 1.375 kB / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004401/0.135, allocations: 339.3 kB / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.847e-06/0.135, allocations: 3.984 kB / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.975e-05/0.1351, allocations: 29.7 kB / 0.6873 GB, free: 12.89 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000213/0.1353, allocations: 145.3 kB / 0.6874 GB, free: 12.75 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1353, allocations: 0 / 0.6874 GB, free: 12.75 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1353, allocations: 3.938 kB / 0.6874 GB, free: 12.75 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.136e-06/0.1353, allocations: 3.031 kB / 0.6874 GB, free: 12.75 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.0002932/0.1356, allocations: 347.5 kB / 0.6877 GB, free: 12.36 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1357, allocations: 8.031 kB / 0.6877 GB, free: 12.35 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.623e-05/0.1357, allocations: 34.75 kB / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.622e-05/0.1357, allocations: 0.9375 kB / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.245e-05/0.1358, allocations: 164.4 kB / 0.6879 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.1358, allocations: 8.375 kB / 0.6879 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-06/0.1358, allocations: 0.875 kB / 0.6879 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.109e-05/0.1359, allocations: 30.89 kB / 0.688 GB, free: 12.06 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.1359, allocations: 8.594 kB / 0.688 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-06/0.1359, allocations: 0 / 0.688 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.136, allocations: 1.938 kB / 0.688 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.157e-05/0.136, allocations: 4 kB / 0.688 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.1361, allocations: 149.7 kB / 0.6881 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.532e-05/0.1362, allocations: 23.36 kB / 0.6882 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.6e-05/0.1362, allocations: 15.23 kB / 0.6882 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.1362, allocations: 4.062 kB / 0.6882 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.1362, allocations: 34.55 kB / 0.6882 GB, free: 11.76 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 2.114e-06/0.1362, allocations: 0 / 0.6882 GB, free: 11.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001118/0.1364, allocations: 51.58 kB / 0.6883 GB, free: 11.71 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.584e-05/0.1364, allocations: 51.41 kB / 0.6883 GB, free: 11.64 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.873e-05/0.1365, allocations: 93.86 kB / 0.6884 GB, free: 11.54 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.1365, allocations: 25.7 kB / 0.6884 GB, free: 11.51 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.557e-05/0.1365, allocations: 84.81 kB / 0.6885 GB, free: 11.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.872e-05/0.1365, allocations: 9.719 kB / 0.6885 GB, free: 11.42 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.918e-05/0.1365, allocations: 9.719 kB / 0.6885 GB, free: 11.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.542e-05/0.1366, allocations: 310.8 kB / 0.6888 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.015e-05/0.1367, allocations: 0.6562 kB / 0.6888 GB, free: 11.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.935e-06/0.1367, allocations: 4 kB / 0.6888 GB, free: 11.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.743e-05/0.1367, allocations: 18.39 kB / 0.6888 GB, free: 11.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1367, allocations: 0 / 0.6888 GB, free: 11.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.7e-05/0.1368, allocations: 42.19 kB / 0.6889 GB, free: 11.02 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.1368, allocations: 11.94 kB / 0.6889 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-06/0.1368, allocations: 1.25 kB / 0.6889 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.053e-06/0.1368, allocations: 0 / 0.6889 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.1369, allocations: 11.98 kB / 0.6889 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003098/0.1373, allocations: 0.591 MB / 0.6895 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.656e-05/0.1373, allocations: 0 / 0.6895 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-06/0.1373, allocations: 32 / 0.6895 GB, free: 10.38 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.841e-05/0.1374, allocations: 115.1 kB / 0.6896 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.331e-06/0.1374, allocations: 0 / 0.6896 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.417e-05/0.1375, allocations: 48.75 kB / 0.6896 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1375, allocations: 0 / 0.6896 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.1375, allocations: 4.125 kB / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1375, allocations: 4 kB / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.773e-05/0.1376, allocations: 157.5 kB / 0.6898 GB, free: 9.996 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1376, allocations: 0 / 0.6898 GB, free: 9.996 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.9e-05/0.1377, allocations: 8 kB / 0.6898 GB, free: 9.988 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.1377, allocations: 0 / 0.6898 GB, free: 9.988 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.1377, allocations: 7.984 kB / 0.6898 GB, free: 9.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002797/0.138, allocations: 0.5859 MB / 0.6904 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.138, allocations: 11.97 kB / 0.6904 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.169e-05/0.1381, allocations: 57.17 kB / 0.6904 GB, free: 9.285 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.1381, allocations: 81.09 kB / 0.6905 GB, free: 9.188 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.658e-06/0.1381, allocations: 7.984 kB / 0.6905 GB, free: 9.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.477e-05/0.1381, allocations: 4 kB / 0.6905 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.207e-05/0.1382, allocations: 7.875 kB / 0.6905 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.1382, allocations: 0 / 0.6905 GB, free: 9.168 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.849e-05/0.1382, allocations: 83.31 kB / 0.6906 GB, free: 9.086 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1382, allocations: 0 / 0.6906 GB, free: 9.086 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000181/0.1384, allocations: 8 kB / 0.6906 GB, free: 9.078 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.0003385/0.1387, allocations: 0.6165 MB / 0.6912 GB, free: 8.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001335/0.1389, allocations: 15.98 kB / 0.6912 GB, free: 8.414 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1389, allocations: 3.938 kB / 0.6912 GB, free: 8.41 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.114e-05/0.139, allocations: 16 kB / 0.6913 GB, free: 8.395 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.1391, allocations: 8.672 kB / 0.6913 GB, free: 8.387 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003429/0.1395, allocations: 147.2 kB / 0.6914 GB, free: 8.207 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002019/0.1397, allocations: 0.6809 MB / 0.6921 GB, free: 7.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.326e-05/0.1397, allocations: 0 / 0.6921 GB, free: 7.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.728e-05/0.1397, allocations: 7.438 kB / 0.6921 GB, free: 7.492 MB / 494.1 MB Notification: Performance of SimCode: time 3e-07/0.1397, allocations: 0 / 0.6921 GB, free: 7.492 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01083/0.1506, allocations: 1.181 MB / 0.6932 GB, free: 6.57 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/0.1508, allocations: 275.6 kB / 0.6935 GB, free: 6.195 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.569/1.72, allocations: 3.938 kB / 0.6935 GB, free: 6.191 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)