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.00128/0.00128, allocations: 108 kB / 15.6 MB, free: 132 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.001272/0.001272, allocations: 199 kB / 16.54 MB, free: 6.672 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.215/1.215, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002068/0.002068, allocations: 288.6 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8837/0.8837, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 95.17 kB / 0.5953 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1275, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002206/0.1298, allocations: 1.245 MB / 0.6815 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008501/0.1306, allocations: 0.5884 MB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.111e-05/0.1307, allocations: 0.7188 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.565e-05/0.1307, allocations: 0 / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.793e-05/0.1307, allocations: 8.734 kB / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005037/0.1313, allocations: 136 kB / 0.6822 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.975e-05/0.1313, allocations: 14.02 kB / 0.6822 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.014e-05/0.1314, allocations: 4 kB / 0.6822 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.81e-05/0.1314, allocations: 4 kB / 0.6822 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.901e-05/0.1314, allocations: 7.938 kB / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.739e-06/0.1314, allocations: 0 / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004892/0.1319, allocations: 351.3 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.816e-06/0.132, allocations: 0 / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.013e-05/0.132, allocations: 7.984 kB / 0.6826 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002343/0.1322, allocations: 139.9 kB / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1322, allocations: 0 / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1322, allocations: 0 / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1323, allocations: 4 kB / 0.6827 GB, free: 14.08 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.0003242/0.1326, allocations: 347.5 kB / 0.6831 GB, free: 13.69 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.1326, allocations: 8.031 kB / 0.6831 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.944e-05/0.1327, allocations: 34.75 kB / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.957e-05/0.1327, allocations: 4.938 kB / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.822e-05/0.1328, allocations: 168.4 kB / 0.6833 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.626e-06/0.1328, allocations: 4.312 kB / 0.6833 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.791e-06/0.1328, allocations: 384 / 0.6833 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.666e-05/0.1329, allocations: 34.25 kB / 0.6833 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.1329, allocations: 3.938 kB / 0.6833 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.1329, allocations: 0 / 0.6833 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-06/0.1329, allocations: 0 / 0.6833 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.325e-05/0.1329, allocations: 4 kB / 0.6833 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000128/0.1331, allocations: 161.6 kB / 0.6835 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.607e-05/0.1331, allocations: 26.52 kB / 0.6835 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.626e-05/0.1331, allocations: 8.859 kB / 0.6835 GB, free: 13.13 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.1332, allocations: 4 kB / 0.6835 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.1332, allocations: 34.55 kB / 0.6835 GB, free: 13.08 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.1332, allocations: 0 / 0.6835 GB, free: 13.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001179/0.1333, allocations: 49.62 kB / 0.6836 GB, free: 13.03 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.1334, allocations: 55.41 kB / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.128e-05/0.1334, allocations: 89.86 kB / 0.6837 GB, free: 12.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.049e-05/0.1334, allocations: 29.64 kB / 0.6837 GB, free: 12.83 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.615e-05/0.1335, allocations: 84.14 kB / 0.6838 GB, free: 12.74 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.1335, allocations: 7.906 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.657e-05/0.1335, allocations: 17.64 kB / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.222e-05/0.1336, allocations: 319.1 kB / 0.6842 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.117e-05/0.1336, allocations: 0 / 0.6842 GB, free: 12.39 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.092e-05/0.1336, allocations: 8 kB / 0.6842 GB, free: 12.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.686e-05/0.1337, allocations: 8.859 kB / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.1337, allocations: 0 / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.108e-05/0.1338, allocations: 41.69 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.1338, allocations: 7.938 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1338, allocations: 0 / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.1338, allocations: 4.094 kB / 0.6842 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.1339, allocations: 8 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000301/0.1343, allocations: 0.5899 MB / 0.6848 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.871e-05/0.1343, allocations: 4 kB / 0.6848 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-06/0.1343, allocations: 0 / 0.6848 GB, free: 11.69 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 6.004e-05/0.1344, allocations: 111.1 kB / 0.6849 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-06/0.1344, allocations: 8.094 kB / 0.6849 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.978e-05/0.1345, allocations: 48.75 kB / 0.685 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1345, allocations: 0 / 0.685 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1345, allocations: 0 / 0.685 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1345, allocations: 0 / 0.685 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.952e-05/0.1346, allocations: 161.5 kB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1346, allocations: 0 / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.639e-05/0.1347, allocations: 8 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1347, allocations: 0 / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-06/0.1347, allocations: 0 / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002436/0.1349, allocations: 0.586 MB / 0.6857 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.135, allocations: 11.86 kB / 0.6857 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.439e-05/0.135, allocations: 65.11 kB / 0.6858 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.667e-05/0.1351, allocations: 77.11 kB / 0.6858 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-06/0.1351, allocations: 4.125 kB / 0.6859 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.635e-05/0.1351, allocations: 7.984 kB / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.194e-05/0.1351, allocations: 3.938 kB / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-06/0.1351, allocations: 4 kB / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.576e-05/0.1352, allocations: 75.28 kB / 0.6859 GB, free: 10.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1352, allocations: 3.938 kB / 0.6859 GB, free: 10.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001894/0.1354, allocations: 8 kB / 0.686 GB, free: 10.39 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.0003369/0.1357, allocations: 0.6125 MB / 0.6865 GB, free: 9.746 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001537/0.1359, allocations: 23.98 kB / 0.6866 GB, free: 9.723 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1359, allocations: 0 / 0.6866 GB, free: 9.723 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.517e-05/0.136, allocations: 8 kB / 0.6866 GB, free: 9.715 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.1361, allocations: 8.094 kB / 0.6866 GB, free: 9.707 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003758/0.1365, allocations: 135.7 kB / 0.6867 GB, free: 9.535 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/0.1367, allocations: 0.6729 MB / 0.6874 GB, free: 8.836 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.671e-05/0.1367, allocations: 7.938 kB / 0.6874 GB, free: 8.828 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.227e-05/0.1367, allocations: 9.266 kB / 0.6874 GB, free: 8.82 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1367, allocations: 0 / 0.6874 GB, free: 8.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.1629, allocations: 1.355 MB / 0.6887 GB, free: 7.672 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.68, allocations: 13 kB / 0.6887 GB, free: 7.668 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)