Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.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.FMI.Conversion.Validation.AirToOutletFlowReversal,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FMI_Conversion_Validation_AirToOutletFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FMI_Conversion_Validation_AirToOutletFlowReversal",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.001566/0.001566, allocations: 108 kB / 15.61 MB, free: 152 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.001304/0.001304, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.407/1.407, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002509/0.002509, allocations: 287 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.088/1.088, allocations: 178.5 MB / 0.5073 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002755/0.002755, allocations: 103.8 kB / 0.6065 GB, free: 24.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1542, allocations: 89.14 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal): time 0.5252/0.6794, allocations: 248.9 MB / 0.9367 GB, free: 2.359 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02697/0.7064, allocations: 22.28 MB / 0.9585 GB, free: 12.01 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001634/0.7081, allocations: 55.69 kB / 0.9585 GB, free: 11.96 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.00243/0.7106, allocations: 0.9703 MB / 0.9595 GB, free: 10.98 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.003568/0.7142, allocations: 1.471 MB / 0.9609 GB, free: 9.504 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.004678/0.7189, allocations: 1.918 MB / 0.9628 GB, free: 7.594 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.003566/0.7224, allocations: 2.697 MB / 0.9654 GB, free: 4.891 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001812/0.7243, allocations: 1.329 MB / 0.9667 GB, free: 3.535 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002479/0.7268, allocations: 1.331 MB / 0.968 GB, free: 2.199 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001234/0.728, allocations: 0.9182 MB / 0.9689 GB, free: 1.277 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.7282, allocations: 108 kB / 0.969 GB, free: 1.172 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003338/0.7315, allocations: 1.672 MB / 0.9706 GB, free: 15.5 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0003961/0.7319, allocations: 378.9 kB / 0.971 GB, free: 15.12 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0006899/0.7326, allocations: 0.6376 MB / 0.9716 GB, free: 14.48 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.002987/0.7356, allocations: 2.224 MB / 0.9738 GB, free: 12.25 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.7357, allocations: 4 kB / 0.9738 GB, free: 12.25 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.664e-06/0.7357, allocations: 3.938 kB / 0.9738 GB, free: 12.25 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 1.846e-05/0.7357, allocations: 0 / 0.9738 GB, free: 12.25 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002082/0.7378, allocations: 1.473 MB / 0.9752 GB, free: 10.72 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.7378, allocations: 8.031 kB / 0.9753 GB, free: 10.71 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001697/0.738, allocations: 143.5 kB / 0.9754 GB, free: 10.56 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/0.7391, allocations: 226.4 kB / 0.9756 GB, free: 10.34 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.7404, allocations: 0.853 MB / 0.9764 GB, free: 9.445 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.7405, allocations: 188.8 kB / 0.9766 GB, free: 9.234 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.7407, allocations: 91.94 kB / 0.9767 GB, free: 9.145 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.7422, allocations: 0.9285 MB / 0.9776 GB, free: 8.184 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.7422, allocations: 3.938 kB / 0.9776 GB, free: 8.18 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.28e-05/0.7423, allocations: 36 kB / 0.9777 GB, free: 8.145 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.278e-05/0.7423, allocations: 24 kB / 0.9777 GB, free: 8.121 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.7435, allocations: 0.6324 MB / 0.9783 GB, free: 7.488 MB / 0.7012 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.005073/0.7486, allocations: 4.462 MB / 0.9827 GB, free: 2.633 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004667/0.7491, allocations: 186.7 kB / 0.9828 GB, free: 2.441 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002337/0.7493, allocations: 140.7 kB / 0.983 GB, free: 2.301 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001205/0.7505, allocations: 1.021 MB / 0.984 GB, free: 1.059 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.7506, allocations: 46.59 kB / 0.984 GB, free: 1.004 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=24): time 2.024e-06/0.7506, allocations: 0 / 0.984 GB, free: 1.004 MB / 0.7012 GB Notification: Performance of matching and sorting (n=24): time 0.001126/0.7517, allocations: 465.7 kB / 0.9845 GB, free: 0.543 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.7518, allocations: 51.41 kB / 0.9845 GB, free: 492 kB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/0.7533, allocations: 1.11 MB / 0.9856 GB, free: 15.36 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.946e-05/0.7533, allocations: 33.7 kB / 0.9856 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004614/0.7538, allocations: 0.5079 MB / 0.9861 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.875e-05/0.7539, allocations: 86.75 kB / 0.9862 GB, free: 14.72 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.7541, allocations: 98.02 kB / 0.9863 GB, free: 14.62 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.7542, allocations: 322 kB / 0.9866 GB, free: 14.3 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002458/0.7545, allocations: 128.8 kB / 0.9867 GB, free: 14.17 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004849/0.755, allocations: 391.1 kB / 0.9871 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006349/0.7556, allocations: 471.5 kB / 0.9875 GB, free: 13.13 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.7556, allocations: 0 / 0.9875 GB, free: 13.13 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009563/0.7566, allocations: 0.5389 MB / 0.9881 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.7566, allocations: 11.94 kB / 0.9881 GB, free: 12.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.7566, allocations: 11.98 kB / 0.9881 GB, free: 12.56 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.7567, allocations: 8 kB / 0.9881 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003787/0.757, allocations: 88.53 kB / 0.9882 GB, free: 12.47 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/0.7571, allocations: 11.98 kB / 0.9882 GB, free: 12.46 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006463/0.7577, allocations: 98.95 kB / 0.9883 GB, free: 12.36 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.679e-05/0.7578, allocations: 27.98 kB / 0.9883 GB, free: 12.33 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (48): * Single equations (assignments): 48 * 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.0003779/0.7582, allocations: 282.1 kB / 0.9886 GB, free: 12.05 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/0.7583, allocations: 102.7 kB / 0.9887 GB, free: 11.95 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007686/0.7591, allocations: 430.4 kB / 0.9891 GB, free: 11.52 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.7591, allocations: 11.92 kB / 0.9891 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.7591, allocations: 0 / 0.9891 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.7592, allocations: 0 / 0.9891 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002295/0.7615, allocations: 1.554 MB / 0.9906 GB, free: 9.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.7615, allocations: 8 kB / 0.9906 GB, free: 9.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.7617, allocations: 43.86 kB / 0.9907 GB, free: 9.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.7617, allocations: 7.984 kB / 0.9907 GB, free: 9.781 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.7617, allocations: 12 kB / 0.9907 GB, free: 9.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.005e-06/0.7617, allocations: 8.5 kB / 0.9907 GB, free: 9.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.7617, allocations: 8 kB / 0.9907 GB, free: 9.754 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000706/0.7624, allocations: 0.5789 MB / 0.9913 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003168/0.7628, allocations: 231.7 kB / 0.9915 GB, free: 8.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.7629, allocations: 15.94 kB / 0.9915 GB, free: 8.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004263/0.7633, allocations: 15.98 kB / 0.9915 GB, free: 8.832 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.7634, allocations: 35.84 kB / 0.9916 GB, free: 8.797 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/0.7634, allocations: 12 kB / 0.9916 GB, free: 8.785 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001114/0.7645, allocations: 0.7783 MB / 0.9923 GB, free: 8 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7646, allocations: 0 / 0.9923 GB, free: 8 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000884/0.7654, allocations: 283.5 kB / 0.9926 GB, free: 7.723 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001532/0.767, allocations: 1.345 MB / 0.9939 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006513/0.7676, allocations: 347.3 kB / 0.9942 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7677, allocations: 0 / 0.9942 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002163/0.7679, allocations: 142.2 kB / 0.9944 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/0.7702, allocations: 0.5157 MB / 0.9949 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.7807, allocations: 7.933 MB / 1.003 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007593/0.7815, allocations: 1.067 MB / 1.004 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0008036/0.7823, allocations: 196.9 kB / 1.004 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004878/0.7828, allocations: 359.3 kB / 1.004 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of SimCode: time 6.42e-07/0.7828, allocations: 0 / 1.004 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06303/0.8459, allocations: 27.78 MB / 1.031 GB, free: 15.87 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.297/9.143, allocations: 15.61 kB / 1.031 GB, free: 15.85 MB / 0.7637 GB (rm -f BuildingSystems_BuildingSystems.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal_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_FMI_Conversion_Validation_AirToOutletFlowReversal.fmu > BuildingSystems_BuildingSystems.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal.pipe 2>&1)