Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.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.Airflow.Multizone.Examples.Orifice,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.Orifice,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_Orifice",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.001292/0.001293, 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.00126/0.00126, allocations: 191.9 kB / 16.53 MB, free: 6.391 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.415/1.415, allocations: 222.9 MB / 240.2 MB, free: 4.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002483/0.002483, allocations: 279.2 kB / 290.7 MB, free: 1.852 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.073/1.073, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002746/0.002746, allocations: 101.3 kB / 0.6065 GB, free: 24.74 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1515, allocations: 89.15 MB / 0.6936 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Airflow.Multizone.Examples.Orifice): time 0.436/0.5875, allocations: 173.8 MB / 0.8633 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.003647/0.5912, allocations: 2.291 MB / 0.8656 GB, free: 6.738 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002224/0.5914, allocations: 18.47 kB / 0.8656 GB, free: 6.73 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.000628/0.5921, allocations: 230.8 kB / 0.8658 GB, free: 6.535 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001814/0.5939, allocations: 0.9327 MB / 0.8667 GB, free: 5.824 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001652/0.5956, allocations: 0.8189 MB / 0.8675 GB, free: 5.23 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0009808/0.5966, allocations: 0.9666 MB / 0.8685 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004611/0.597, allocations: 341.2 kB / 0.8688 GB, free: 4.469 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005753/0.5976, allocations: 450.2 kB / 0.8692 GB, free: 4.227 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003538/0.598, allocations: 316.2 kB / 0.8695 GB, free: 4.039 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.457e-05/0.5981, allocations: 33.41 kB / 0.8695 GB, free: 4.039 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001465/0.5995, allocations: 0.9893 MB / 0.8705 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.5997, allocations: 146.6 kB / 0.8706 GB, free: 3.383 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002358/0.5999, allocations: 237.2 kB / 0.8709 GB, free: 3.238 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.6011, allocations: 0.8972 MB / 0.8717 GB, free: 2.691 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.6011, allocations: 2.906 kB / 0.8717 GB, free: 2.691 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.112e-06/0.6011, allocations: 4 kB / 0.8718 GB, free: 2.688 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.104e-06/0.6011, allocations: 0 / 0.8718 GB, free: 2.688 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001229/0.6023, allocations: 0.7966 MB / 0.8725 GB, free: 2.012 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.6024, allocations: 9.531 kB / 0.8725 GB, free: 2.012 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.135e-05/0.6025, allocations: 69.23 kB / 0.8726 GB, free: 1.945 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/0.6037, allocations: 183.3 kB / 0.8728 GB, free: 1.855 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005208/0.6042, allocations: 368 kB / 0.8731 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/0.6043, allocations: 29.3 kB / 0.8732 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.029e-05/0.6043, allocations: 36.66 kB / 0.8732 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000625/0.605, allocations: 372 kB / 0.8735 GB, free: 1.242 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.605, allocations: 0 / 0.8735 GB, free: 1.242 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.388e-05/0.605, allocations: 14.41 kB / 0.8736 GB, free: 1.23 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.605, allocations: 10.22 kB / 0.8736 GB, free: 1.23 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005017/0.6056, allocations: 260.2 kB / 0.8738 GB, free: 1.113 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.6075, allocations: 1.685 MB / 0.8755 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003831/0.6079, allocations: 203.6 kB / 0.8757 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/0.6081, allocations: 113.5 kB / 0.8758 GB, free: 15.4 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001176/0.6093, allocations: 0.8734 MB / 0.8766 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.6093, allocations: 36.97 kB / 0.8767 GB, free: 14.37 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.6094, allocations: 0 / 0.8767 GB, free: 14.37 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23): time 0.0008838/0.6102, allocations: 360.2 kB / 0.877 GB, free: 14.19 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.6103, allocations: 53.81 kB / 0.8771 GB, free: 14.13 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004447/0.6107, allocations: 425 kB / 0.8775 GB, free: 13.87 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.6108, allocations: 32.56 kB / 0.8775 GB, free: 13.84 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.611, allocations: 212 kB / 0.8777 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.601e-05/0.611, allocations: 88.27 kB / 0.8778 GB, free: 13.57 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.6111, allocations: 50.14 kB / 0.8778 GB, free: 13.53 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001795/0.6113, allocations: 353 kB / 0.8782 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.6115, allocations: 82.25 kB / 0.8782 GB, free: 13.15 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/0.6118, allocations: 122.5 kB / 0.8784 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/0.6122, allocations: 209.3 kB / 0.8786 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.6122, allocations: 0 / 0.8786 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005397/0.6127, allocations: 296.7 kB / 0.8788 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.6127, allocations: 5.031 kB / 0.8788 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.6128, allocations: 2.75 kB / 0.8788 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.6128, allocations: 0 / 0.8788 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.613, allocations: 58.16 kB / 0.8789 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.613, allocations: 1.938 kB / 0.8789 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.6133, allocations: 33.81 kB / 0.8789 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.6133, allocations: 7.812 kB / 0.8789 GB, free: 12.75 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.6135, allocations: 165.4 kB / 0.8791 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.586e-05/0.6135, allocations: 42.09 kB / 0.8791 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005855/0.6141, allocations: 283.2 kB / 0.8794 GB, free: 12.42 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.6142, allocations: 2.625 kB / 0.8794 GB, free: 12.42 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.6142, allocations: 0 / 0.8794 GB, free: 12.42 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.6142, allocations: 3.938 kB / 0.8794 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/0.6154, allocations: 0.808 MB / 0.8802 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.6155, allocations: 6.719 kB / 0.8802 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/0.6157, allocations: 55.38 kB / 0.8803 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.6157, allocations: 2.094 kB / 0.8803 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.6157, allocations: 11.5 kB / 0.8803 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.6157, allocations: 2.719 kB / 0.8803 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.6157, allocations: 0 / 0.8803 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008697/0.6166, allocations: 0.5082 MB / 0.8808 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.6168, allocations: 144.6 kB / 0.8809 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.086e-05/0.6169, allocations: 8 kB / 0.8809 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002787/0.6172, allocations: 19.98 kB / 0.8809 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.205e-05/0.6172, allocations: 11.98 kB / 0.881 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.6172, allocations: 12 kB / 0.881 GB, free: 11 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003572/0.6176, allocations: 299.1 kB / 0.8812 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6176, allocations: 3.938 kB / 0.8813 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004538/0.6181, allocations: 119.8 kB / 0.8814 GB, free: 10.59 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (ori.mExc,den1.d,den2.d) * 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001498/0.6196, allocations: 1.139 MB / 0.8825 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005368/0.6201, allocations: 223.6 kB / 0.8827 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.6201, allocations: 0 / 0.8827 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002431/0.6204, allocations: 111.8 kB / 0.8828 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.6215, allocations: 234.4 kB / 0.883 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005226/0.6268, allocations: 3.738 MB / 0.8867 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004763/0.6273, allocations: 0.8233 MB / 0.8875 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002948/0.6276, allocations: 87.34 kB / 0.8876 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/0.6278, allocations: 143.3 kB / 0.8877 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of SimCode: time 3.9e-07/0.6278, allocations: 0 / 0.8877 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0395/0.6673, allocations: 12 MB / 0.8994 GB, free: 8.168 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.004/8.671, allocations: 5.562 kB / 0.8994 GB, free: 8.164 MB / 0.6231 GB (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice_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_Airflow_Multizone_Examples_Orifice.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.pipe 2>&1)