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.005282/0.005282, allocations: 99.06 kB / 15.73 MB, free: 6.492 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.001367/0.001367, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002492/0.002491, allocations: 286.3 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.057/1.057, allocations: 178.6 MB / 0.5074 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002769/0.002769, allocations: 96.75 kB / 0.6943 GB, free: 3.578 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4275, allocations: 89.14 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FMI.Conversion.Validation.AirToOutletFlowReversal): time 0.2792/0.7068, allocations: 249 MB / 1.024 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.03018/0.737, allocations: 22.28 MB / 1.046 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001692/0.7387, allocations: 55.69 kB / 1.046 GB, free: 15 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003009/0.7418, allocations: 0.9742 MB / 1.047 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.004479/0.7463, allocations: 1.469 MB / 1.049 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.005117/0.7514, allocations: 1.935 MB / 1.051 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.003953/0.7554, allocations: 2.69 MB / 1.053 GB, free: 7.918 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001895/0.7573, allocations: 1.313 MB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002623/0.7599, allocations: 1.347 MB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001317/0.7613, allocations: 0.9183 MB / 1.057 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001607/0.7614, allocations: 108 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003432/0.7649, allocations: 1.672 MB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004326/0.7653, allocations: 378.9 kB / 1.059 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0007877/0.7661, allocations: 0.6337 MB / 1.059 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003378/0.7695, allocations: 2.285 MB / 1.062 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.7695, allocations: 4 kB / 1.062 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.292e-06/0.7695, allocations: 0 / 1.062 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.414e-05/0.7696, allocations: 0 / 1.062 GB, free: 15.21 MB / 0.8262 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.002203/0.7718, allocations: 1.513 MB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.7718, allocations: 8.031 kB / 1.063 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001688/0.772, allocations: 143.5 kB / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001102/0.7731, allocations: 239 kB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.7746, allocations: 0.9203 MB / 1.064 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.7748, allocations: 184.8 kB / 1.065 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.775, allocations: 95.94 kB / 1.065 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.7765, allocations: 0.9323 MB / 1.066 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.7766, allocations: 0 / 1.066 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.829e-05/0.7766, allocations: 36 kB / 1.066 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.19e-05/0.7767, allocations: 24 kB / 1.066 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.7778, allocations: 0.6324 MB / 1.066 GB, free: 10.33 MB / 0.8262 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.004859/0.7827, allocations: 4.44 MB / 1.071 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.7831, allocations: 186.7 kB / 1.071 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.7833, allocations: 140.9 kB / 1.071 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001025/0.7843, allocations: 1.025 MB / 1.072 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.7844, allocations: 38.5 kB / 1.072 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=24): time 2.275e-06/0.7844, allocations: 3.938 kB / 1.072 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.001058/0.7855, allocations: 474.5 kB / 1.072 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.7855, allocations: 55.41 kB / 1.072 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001457/0.787, allocations: 1.106 MB / 1.074 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.787, allocations: 33.7 kB / 1.074 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004454/0.7875, allocations: 0.5126 MB / 1.074 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.117e-05/0.7876, allocations: 99.14 kB / 1.074 GB, free: 1.562 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.7877, allocations: 98.08 kB / 1.074 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.7879, allocations: 318 kB / 1.075 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.7881, allocations: 128.8 kB / 1.075 GB, free: 1.016 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004698/0.7886, allocations: 387.1 kB / 1.075 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3327/1.121, allocations: 471.2 kB / 1.075 GB, free: 146.9 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.588e-05/1.121, allocations: 2.156 kB / 1.075 GB, free: 146.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001302/1.123, allocations: 0.5344 MB / 1.076 GB, free: 146.8 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/1.123, allocations: 16.23 kB / 1.076 GB, free: 146.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/1.123, allocations: 6.312 kB / 1.076 GB, free: 146.8 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.154e-05/1.123, allocations: 9.281 kB / 1.076 GB, free: 146.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003964/1.123, allocations: 89.75 kB / 1.076 GB, free: 146.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/1.123, allocations: 12.89 kB / 1.076 GB, free: 146.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006449/1.124, allocations: 95.2 kB / 1.076 GB, free: 146.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.988e-05/1.124, allocations: 26.47 kB / 1.076 GB, free: 146.8 MB / 0.8262 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.0003768/1.124, allocations: 290.8 kB / 1.077 GB, free: 146.7 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/1.124, allocations: 110 kB / 1.077 GB, free: 146.7 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007082/1.125, allocations: 424.9 kB / 1.077 GB, free: 146.7 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/1.125, allocations: 4.469 kB / 1.077 GB, free: 146.7 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/1.125, allocations: 0.875 kB / 1.077 GB, free: 146.7 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/1.125, allocations: 5.016 kB / 1.077 GB, free: 146.7 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002016/1.127, allocations: 1.551 MB / 1.079 GB, free: 146.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/1.127, allocations: 6.719 kB / 1.079 GB, free: 146.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/1.127, allocations: 40.64 kB / 1.079 GB, free: 146.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/1.127, allocations: 6.844 kB / 1.079 GB, free: 146.2 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/1.128, allocations: 12.78 kB / 1.079 GB, free: 146.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.134e-06/1.128, allocations: 11.55 kB / 1.079 GB, free: 146.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.128, allocations: 13.16 kB / 1.079 GB, free: 146.2 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005393/1.128, allocations: 0.5701 MB / 1.079 GB, free: 145.9 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002735/1.128, allocations: 244.3 kB / 1.079 GB, free: 145.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/1.129, allocations: 12.72 kB / 1.079 GB, free: 145.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004183/1.129, allocations: 18.53 kB / 1.079 GB, free: 145.7 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.734e-05/1.129, allocations: 37.53 kB / 1.08 GB, free: 145.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/1.129, allocations: 15.41 kB / 1.08 GB, free: 145.7 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001054/1.13, allocations: 0.7792 MB / 1.08 GB, free: 145.6 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.91e-07/1.13, allocations: 0 / 1.08 GB, free: 145.6 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0008918/1.131, allocations: 285.3 kB / 1.081 GB, free: 145.6 MB / 0.8262 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.001338/1.132, allocations: 1.346 MB / 1.082 GB, free: 144.7 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006375/1.133, allocations: 345 kB / 1.082 GB, free: 144.7 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/1.133, allocations: 2.031 kB / 1.082 GB, free: 144.7 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002086/1.133, allocations: 142.7 kB / 1.082 GB, free: 144.7 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/1.136, allocations: 0.5213 MB / 1.083 GB, free: 144.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008866/1.144, allocations: 7.439 MB / 1.09 GB, free: 142 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004806/1.145, allocations: 1.061 MB / 1.091 GB, free: 141.3 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0007991/1.146, allocations: 195 kB / 1.091 GB, free: 141.3 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000417/1.146, allocations: 363.4 kB / 1.092 GB, free: 141.3 MB / 0.8262 GB Notification: Performance of SimCode: time 7.51e-07/1.146, allocations: 0 / 1.092 GB, free: 141.3 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05378/1.2, allocations: 28.07 MB / 1.119 GB, free: 134.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.858/11.06, allocations: 6.062 kB / 1.119 GB, free: 134.2 MB / 0.8262 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)