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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7547/0.7547, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009658/0.0009658, allocations: 184.8 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 221.3 MB / 441.4 MB, free: 4.594 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009474/0.0009475, allocations: 101.1 kB / 0.5124 GB, free: 24.19 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001741/0.001741, allocations: 280.8 kB / 0.5939 GB, free: 7.949 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.105e-05/5.131e-05, allocations: 7.984 kB / 0.6835 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4861/0.4861, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1202/0.6064, allocations: 109 MB / 0.8708 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.6067, allocations: 75.95 kB / 0.8709 GB, free: 15.42 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.0068/0.6135, allocations: 2.313 MB / 0.8732 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6135, allocations: 0 / 0.8732 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.157e-05/0.6136, allocations: 0 / 0.8732 GB, free: 13.12 MB / 0.5417 GB 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.0003003/0.6139, allocations: 330.5 kB / 0.8735 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.6139, allocations: 12.03 kB / 0.8735 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.412e-05/0.614, allocations: 38.56 kB / 0.8735 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.082e-05/0.614, allocations: 0 / 0.8735 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.6141, allocations: 163 kB / 0.8737 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-06/0.6141, allocations: 4 kB / 0.8737 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.948e-06/0.6142, allocations: 0 / 0.8737 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.862e-05/0.6143, allocations: 33.64 kB / 0.8737 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.6143, allocations: 3.984 kB / 0.8737 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.6143, allocations: 0 / 0.8737 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.6143, allocations: 0 / 0.8737 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.794e-05/0.6143, allocations: 8 kB / 0.8737 GB, free: 12.44 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.6145, allocations: 157.5 kB / 0.8739 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.394e-05/0.6146, allocations: 26.61 kB / 0.8739 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.76e-05/0.6146, allocations: 4.859 kB / 0.8739 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.731e-05/0.6146, allocations: 4.062 kB / 0.8739 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.6146, allocations: 38.48 kB / 0.874 GB, free: 12.14 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.6147, allocations: 4 kB / 0.874 GB, free: 12.14 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0001218/0.6148, allocations: 37.7 kB / 0.874 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.6148, allocations: 51.41 kB / 0.8741 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.709e-05/0.6149, allocations: 89 kB / 0.8741 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.6149, allocations: 25.7 kB / 0.8742 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 2.771e-05/0.615, allocations: 80.14 kB / 0.8742 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.372e-05/0.615, allocations: 7.891 kB / 0.8742 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.144e-06/0.615, allocations: 0 / 0.8742 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.6151, allocations: 319 kB / 0.8746 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.19e-05/0.6151, allocations: 4 kB / 0.8746 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.432e-06/0.6151, allocations: 0 / 0.8746 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.671e-05/0.6152, allocations: 4 kB / 0.8746 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.6152, allocations: 3.938 kB / 0.8746 GB, free: 11.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.756e-05/0.6152, allocations: 41.66 kB / 0.8746 GB, free: 11.44 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.6153, allocations: 9.406 kB / 0.8746 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.6153, allocations: 7.984 kB / 0.8746 GB, free: 11.42 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.6153, allocations: 8.031 kB / 0.8746 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.6155, allocations: 8 kB / 0.8746 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003527/0.6158, allocations: 0.582 MB / 0.8752 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.634e-05/0.6159, allocations: 0 / 0.8752 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.6159, allocations: 6.203 kB / 0.8752 GB, free: 10.8 MB / 0.5417 GB 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 6.4e-05/0.6159, allocations: 113 kB / 0.8753 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.111e-06/0.616, allocations: 4.094 kB / 0.8753 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.6161, allocations: 40.83 kB / 0.8754 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.6161, allocations: 0 / 0.8754 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.6161, allocations: 0 / 0.8754 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.6161, allocations: 3.984 kB / 0.8754 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001056/0.6162, allocations: 149.6 kB / 0.8755 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.6162, allocations: 0 / 0.8755 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.846e-05/0.6163, allocations: 15.98 kB / 0.8755 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.6163, allocations: 0 / 0.8755 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-06/0.6163, allocations: 3.938 kB / 0.8755 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003218/0.6166, allocations: 0.5902 MB / 0.8761 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.6167, allocations: 0 / 0.8761 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.28e-05/0.6167, allocations: 65.11 kB / 0.8762 GB, free: 9.719 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.732e-05/0.6168, allocations: 81.02 kB / 0.8762 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.194e-05/0.6168, allocations: 8.125 kB / 0.8762 GB, free: 9.613 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.238e-05/0.6168, allocations: 0 / 0.8762 GB, free: 9.613 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.622e-05/0.6168, allocations: 0 / 0.8762 GB, free: 9.613 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-06/0.6168, allocations: 0 / 0.8762 GB, free: 9.613 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.39e-05/0.6169, allocations: 83.23 kB / 0.8763 GB, free: 9.531 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6169, allocations: 3.938 kB / 0.8763 GB, free: 9.527 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001731/0.6171, allocations: 11.98 kB / 0.8763 GB, free: 9.516 MB / 0.5417 GB 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004254/0.6175, allocations: 0.6186 MB / 0.8769 GB, free: 8.871 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001381/0.6176, allocations: 15.98 kB / 0.877 GB, free: 8.855 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6177, allocations: 0 / 0.877 GB, free: 8.855 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.798e-05/0.6177, allocations: 15.94 kB / 0.877 GB, free: 8.84 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001013/0.6179, allocations: 1.016 kB / 0.877 GB, free: 8.84 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002638/0.6181, allocations: 91.61 kB / 0.8771 GB, free: 8.715 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/0.6184, allocations: 0.677 MB / 0.8777 GB, free: 8.012 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 1.57e-05/0.6184, allocations: 0 / 0.8777 GB, free: 8.012 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.158e-05/0.6185, allocations: 11.44 kB / 0.8777 GB, free: 8 MB / 0.5417 GB Notification: Performance of SimCode: time 2.915e-06/0.6185, allocations: 3.938 kB / 0.8777 GB, free: 7.996 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01356/0.632, allocations: 1.161 MB / 0.8789 GB, free: 7.098 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000231/0.6323, allocations: 235.6 kB / 0.8791 GB, free: 6.867 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.407/2.039, allocations: 0 / 0.8791 GB, free: 6.867 MB / 0.5417 GB (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/linux/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)