Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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_dp,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",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.005344/0.005345, allocations: 99.61 kB / 15.73 MB, free: 6.031 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.001436/0.001436, allocations: 194 kB / 16.67 MB, free: 5.953 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003823/0.003823, allocations: 292.3 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.331/1.331, allocations: 178.6 MB / 0.5074 GB, free: 12.67 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002736/0.002736, allocations: 95.84 kB / 0.6943 GB, free: 15.16 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4821/0.4849, allocations: 89.13 MB / 0.7813 GB, free: 1.125 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002163/0.4871, allocations: 1.25 MB / 0.7826 GB, free: 144 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001102/0.4882, allocations: 0.5828 MB / 0.7831 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.408e-05/0.4883, allocations: 1.5 kB / 0.7831 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.318e-05/0.4883, allocations: 3.938 kB / 0.7831 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.233e-05/0.4884, allocations: 3.938 kB / 0.7831 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005691/0.4889, allocations: 143.1 kB / 0.7833 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.153e-05/0.489, allocations: 13.59 kB / 0.7833 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.825e-05/0.4891, allocations: 9.266 kB / 0.7833 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.986e-05/0.4891, allocations: 2.531 kB / 0.7833 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.541e-05/0.4891, allocations: 1.469 kB / 0.7833 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.4892, allocations: 1.625 kB / 0.7833 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005712/0.4897, allocations: 337.2 kB / 0.7836 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.464e-05/0.4898, allocations: 3.938 kB / 0.7836 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.07e-05/0.4898, allocations: 6.094 kB / 0.7836 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.4901, allocations: 145.1 kB / 0.7838 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.4901, allocations: 4 kB / 0.7838 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.804e-06/0.4901, allocations: 0 / 0.7838 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.082e-05/0.4901, allocations: 0 / 0.7838 GB, free: 15.27 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.0004712/0.4906, allocations: 355.2 kB / 0.7841 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.4906, allocations: 10.28 kB / 0.7841 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.159e-05/0.4907, allocations: 38.67 kB / 0.7842 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.667e-05/0.4907, allocations: 2 kB / 0.7842 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.4909, allocations: 161.6 kB / 0.7843 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.4909, allocations: 1.875 kB / 0.7843 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.723e-06/0.4909, allocations: 8.312 kB / 0.7843 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.491, allocations: 29.39 kB / 0.7843 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.4911, allocations: 3.938 kB / 0.7844 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.4911, allocations: 5.25 kB / 0.7844 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.4911, allocations: 0 / 0.7844 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.328e-05/0.4911, allocations: 7.391 kB / 0.7844 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001866/0.4913, allocations: 144.4 kB / 0.7845 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 6.856e-05/0.4914, allocations: 32.36 kB / 0.7845 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.201e-05/0.4914, allocations: 10.28 kB / 0.7845 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.4914, allocations: 1.438 kB / 0.7845 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.4915, allocations: 31.91 kB / 0.7846 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.4915, allocations: 0 / 0.7846 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001648/0.4917, allocations: 43.3 kB / 0.7846 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.4917, allocations: 55.34 kB / 0.7847 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.005e-05/0.4918, allocations: 104.5 kB / 0.7848 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.4918, allocations: 27.14 kB / 0.7848 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.515e-05/0.4919, allocations: 80.14 kB / 0.7849 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.4919, allocations: 8.969 kB / 0.7849 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-05/0.4919, allocations: 12.47 kB / 0.7849 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.4921, allocations: 318.8 kB / 0.7852 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.613e-05/0.4921, allocations: 6.625 kB / 0.7852 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.169e-05/0.4921, allocations: 5.703 kB / 0.7852 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.136e-05/0.4922, allocations: 14.52 kB / 0.7852 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4922, allocations: 0 / 0.7852 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.964e-05/0.4923, allocations: 45.72 kB / 0.7853 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.4923, allocations: 10.31 kB / 0.7853 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.4923, allocations: 0 / 0.7853 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.4923, allocations: 0 / 0.7853 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.4925, allocations: 12.52 kB / 0.7853 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004094/0.4929, allocations: 0.5856 MB / 0.7859 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.946e-05/0.4929, allocations: 1.188 kB / 0.7859 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.4929, allocations: 0 / 0.7859 GB, free: 12.98 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.568e-05/0.493, allocations: 116.3 kB / 0.786 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-06/0.4931, allocations: 1.562 kB / 0.786 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000118/0.4932, allocations: 47.44 kB / 0.786 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4932, allocations: 9.641 kB / 0.786 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4932, allocations: 0 / 0.786 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.4932, allocations: 3.938 kB / 0.786 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.4933, allocations: 152.7 kB / 0.7862 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.4933, allocations: 0 / 0.7862 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.565e-05/0.4934, allocations: 12.73 kB / 0.7862 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.4934, allocations: 0 / 0.7862 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.4934, allocations: 0 / 0.7862 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003638/0.4938, allocations: 0.5868 MB / 0.7868 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.4938, allocations: 9.188 kB / 0.7868 GB, free: 12 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.986e-05/0.4939, allocations: 66.16 kB / 0.7868 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.375e-05/0.494, allocations: 78.48 kB / 0.7869 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.039e-05/0.494, allocations: 0 / 0.7869 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.381e-05/0.494, allocations: 0 / 0.7869 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.233e-05/0.494, allocations: 5.094 kB / 0.7869 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.494, allocations: 5.594 kB / 0.7869 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.999e-05/0.4941, allocations: 76.78 kB / 0.787 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4941, allocations: 0 / 0.787 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002082/0.4943, allocations: 15.92 kB / 0.787 GB, free: 11.74 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.0004667/0.4948, allocations: 0.6175 MB / 0.7876 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000179/0.4949, allocations: 16.64 kB / 0.7876 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.495, allocations: 1.062 kB / 0.7876 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.335e-05/0.495, allocations: 13.73 kB / 0.7876 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000151/0.4952, allocations: 7.906 kB / 0.7876 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004594/0.4957, allocations: 130.7 kB / 0.7878 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.496, allocations: 0.6797 MB / 0.7884 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.812e-05/0.496, allocations: 3.984 kB / 0.7884 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.923e-05/0.4961, allocations: 12.91 kB / 0.7885 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.4961, allocations: 0 / 0.7885 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.5242, allocations: 1.382 MB / 0.7898 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.99, allocations: 9.438 kB / 0.7898 GB, free: 9.543 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_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_dp.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1)