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.005132/0.005132, allocations: 99.58 kB / 15.73 MB, free: 6.039 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.00135/0.00135, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002566/0.002566, allocations: 296.1 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.306/1.306, allocations: 178.5 MB / 0.5074 GB, free: 12.75 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002728/0.002728, allocations: 103.8 kB / 0.6943 GB, free: 15.2 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4144/0.4171, allocations: 89.12 MB / 0.7813 GB, free: 1.156 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002003/0.4191, allocations: 1.242 MB / 0.7825 GB, free: 180 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0009551/0.4201, allocations: 0.5909 MB / 0.7831 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.09e-05/0.4202, allocations: 1.062 kB / 0.7831 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.779e-05/0.4202, allocations: 7.922 kB / 0.7831 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.259e-05/0.4202, allocations: 1.125 kB / 0.7831 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006113/0.4209, allocations: 143.4 kB / 0.7833 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.048e-05/0.4209, allocations: 8.938 kB / 0.7833 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.515e-05/0.421, allocations: 6.75 kB / 0.7833 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.008e-05/0.421, allocations: 1.344 kB / 0.7833 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.757e-05/0.4211, allocations: 2.688 kB / 0.7833 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.535e-05/0.4211, allocations: 3.984 kB / 0.7833 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000571/0.4217, allocations: 337 kB / 0.7836 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.424e-05/0.4217, allocations: 9.234 kB / 0.7836 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.073e-05/0.4217, allocations: 6.562 kB / 0.7836 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002741/0.422, allocations: 152.3 kB / 0.7838 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.422, allocations: 4 kB / 0.7838 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.332e-06/0.422, allocations: 0 / 0.7838 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.422, allocations: 1.156 kB / 0.7838 GB, free: 15.29 MB / 0.5606 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.0004406/0.4225, allocations: 354 kB / 0.7841 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.4225, allocations: 9.156 kB / 0.7841 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.179e-05/0.4226, allocations: 30.75 kB / 0.7842 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.105e-05/0.4226, allocations: 2.219 kB / 0.7842 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.4227, allocations: 161.8 kB / 0.7843 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.4227, allocations: 8.375 kB / 0.7843 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.4228, allocations: 5.891 kB / 0.7843 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.185e-05/0.4229, allocations: 33.14 kB / 0.7844 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.4229, allocations: 3.938 kB / 0.7844 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.4229, allocations: 1.281 kB / 0.7844 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.4229, allocations: 0 / 0.7844 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.358e-05/0.4229, allocations: 2.688 kB / 0.7844 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001851/0.4231, allocations: 152.5 kB / 0.7845 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.665e-05/0.4232, allocations: 24.55 kB / 0.7845 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.174e-05/0.4232, allocations: 11.33 kB / 0.7845 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.4232, allocations: 0 / 0.7845 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.4233, allocations: 31.66 kB / 0.7846 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.4233, allocations: 3.938 kB / 0.7846 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001358/0.4234, allocations: 47.44 kB / 0.7846 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.4235, allocations: 52.38 kB / 0.7847 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.2e-05/0.4235, allocations: 96.55 kB / 0.7848 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.4236, allocations: 25.7 kB / 0.7848 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.652e-05/0.4236, allocations: 81.45 kB / 0.7849 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.26e-05/0.4236, allocations: 5.328 kB / 0.7849 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.4237, allocations: 19.83 kB / 0.7849 GB, free: 14 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.4238, allocations: 314.8 kB / 0.7852 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.159e-05/0.4238, allocations: 2.344 kB / 0.7852 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.777e-06/0.4239, allocations: 6.75 kB / 0.7852 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.277e-05/0.4239, allocations: 17.98 kB / 0.7852 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4239, allocations: 3.938 kB / 0.7852 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.463e-05/0.424, allocations: 46.3 kB / 0.7853 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.424, allocations: 9 kB / 0.7853 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.424, allocations: 0 / 0.7853 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.424, allocations: 1.469 kB / 0.7853 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.4242, allocations: 7.156 kB / 0.7853 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004155/0.4246, allocations: 0.5909 MB / 0.7859 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.737e-05/0.4246, allocations: 0 / 0.7859 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.421e-06/0.4246, allocations: 1.75 kB / 0.7859 GB, free: 13.01 MB / 0.5606 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 () * 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 8.614e-05/0.4247, allocations: 111.4 kB / 0.786 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.663e-06/0.4247, allocations: 0 / 0.786 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.4248, allocations: 49.41 kB / 0.786 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.4249, allocations: 3.984 kB / 0.786 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4249, allocations: 1.812 kB / 0.786 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.4249, allocations: 0 / 0.786 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.425, allocations: 155.3 kB / 0.7862 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.425, allocations: 1.719 kB / 0.7862 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.238e-05/0.4251, allocations: 10.88 kB / 0.7862 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.4251, allocations: 0 / 0.7862 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-06/0.4251, allocations: 5.562 kB / 0.7862 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003577/0.4255, allocations: 0.5895 MB / 0.7868 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.4255, allocations: 5.094 kB / 0.7868 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.384e-05/0.4256, allocations: 58.3 kB / 0.7868 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.359e-05/0.4256, allocations: 78.48 kB / 0.7869 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.4256, allocations: 3.984 kB / 0.7869 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.547e-05/0.4257, allocations: 0 / 0.7869 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.873e-05/0.4257, allocations: 13.28 kB / 0.7869 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-06/0.4257, allocations: 1.469 kB / 0.7869 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.147e-05/0.4257, allocations: 80.69 kB / 0.787 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4257, allocations: 0 / 0.787 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001964/0.4259, allocations: 11.72 kB / 0.787 GB, free: 11.78 MB / 0.5606 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 () * 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.0004642/0.4264, allocations: 0.6136 MB / 0.7876 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001678/0.4266, allocations: 25.11 kB / 0.7876 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.4266, allocations: 0 / 0.7876 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 7.963e-05/0.4267, allocations: 10.53 kB / 0.7876 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.4268, allocations: 9 kB / 0.7876 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004361/0.4273, allocations: 134.9 kB / 0.7878 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.4276, allocations: 0.6759 MB / 0.7884 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.364e-05/0.4276, allocations: 0 / 0.7884 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.945e-05/0.4277, allocations: 8.531 kB / 0.7884 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of SimCode: time 2.2e-07/0.4277, allocations: 0 / 0.7884 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02378/0.4514, allocations: 1.407 MB / 0.7898 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.75, allocations: 15.28 kB / 0.7898 GB, free: 9.566 MB / 0.5606 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)