Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.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.Media.Examples.AirDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.AirDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck",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.00694/0.006941, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001324/0.001324, allocations: 194.4 kB / 16.68 MB, free: 5.969 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.29/1.29, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00217/0.00217, allocations: 296.5 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9416/0.9416, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 99.84 kB / 0.6809 GB, free: 7.492 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.367, allocations: 86.98 MB / 0.7659 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirDerivativeCheck): time 0.002146/0.3691, allocations: 1.326 MB / 0.7672 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.1388/0.5079, allocations: 148.1 MB / 0.9118 GB, free: 13.85 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.463e-05/0.508, allocations: 0 / 0.9118 GB, free: 13.85 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 3.561e-05/0.5081, allocations: 7.922 kB / 0.9118 GB, free: 13.84 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.5082, allocations: 11.92 kB / 0.9118 GB, free: 13.83 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009454/0.5091, allocations: 342.6 kB / 0.9121 GB, free: 13.49 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.5092, allocations: 67.77 kB / 0.9122 GB, free: 13.43 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 3.48e-05/0.5093, allocations: 4 kB / 0.9122 GB, free: 13.42 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 4.384e-05/0.5093, allocations: 31.91 kB / 0.9122 GB, free: 13.39 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 8.65e-05/0.5094, allocations: 31.89 kB / 0.9123 GB, free: 13.36 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.5094, allocations: 4 kB / 0.9123 GB, free: 13.36 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007642/0.5102, allocations: 410.5 kB / 0.9127 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 4.831e-05/0.5103, allocations: 23.92 kB / 0.9127 GB, free: 12.93 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 4.143e-05/0.5103, allocations: 27.91 kB / 0.9127 GB, free: 12.91 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0003189/0.5107, allocations: 153 kB / 0.9129 GB, free: 12.76 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.5107, allocations: 3.984 kB / 0.9129 GB, free: 12.76 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.152e-06/0.5107, allocations: 0 / 0.9129 GB, free: 12.76 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.5107, allocations: 0 / 0.9129 GB, free: 12.76 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004111/0.5111, allocations: 387.1 kB / 0.9132 GB, free: 12.33 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.5111, allocations: 12.03 kB / 0.9132 GB, free: 12.32 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.224e-05/0.5112, allocations: 34.75 kB / 0.9133 GB, free: 12.28 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000413/0.5116, allocations: 48.84 kB / 0.9133 GB, free: 12.23 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.568e-05/0.5117, allocations: 172 kB / 0.9135 GB, free: 12.02 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.5117, allocations: 11.92 kB / 0.9135 GB, free: 12.01 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.5118, allocations: 8 kB / 0.9135 GB, free: 12 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.5119, allocations: 81.58 kB / 0.9136 GB, free: 11.92 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.512, allocations: 0 / 0.9136 GB, free: 11.92 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.512, allocations: 8 kB / 0.9136 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.512, allocations: 0 / 0.9136 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.368e-05/0.5121, allocations: 43.95 kB / 0.9136 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001796/0.5123, allocations: 189.5 kB / 0.9138 GB, free: 11.63 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.5125, allocations: 94.62 kB / 0.9139 GB, free: 11.53 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.257e-05/0.5125, allocations: 28.84 kB / 0.9139 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002161/0.5127, allocations: 182.2 kB / 0.9141 GB, free: 11.29 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.5128, allocations: 34.56 kB / 0.9141 GB, free: 11.24 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.5128, allocations: 8.266 kB / 0.9141 GB, free: 11.23 MB / 0.6856 GB Notification: Performance of matching and sorting (n=19): time 0.001272/0.5141, allocations: 0.5412 MB / 0.9147 GB, free: 10.64 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.5141, allocations: 63.41 kB / 0.9147 GB, free: 10.57 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.442e-05/0.5142, allocations: 101.8 kB / 0.9148 GB, free: 10.46 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.5142, allocations: 33.64 kB / 0.9149 GB, free: 10.42 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 2.585e-05/0.5142, allocations: 80.52 kB / 0.9149 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 5.92e-05/0.5143, allocations: 75.38 kB / 0.915 GB, free: 10.27 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.04e-05/0.5144, allocations: 41.7 kB / 0.9151 GB, free: 10.22 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 9.503e-05/0.5145, allocations: 318.8 kB / 0.9154 GB, free: 9.898 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.619e-05/0.5145, allocations: 40.11 kB / 0.9154 GB, free: 9.859 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.996e-05/0.5146, allocations: 63.41 kB / 0.9155 GB, free: 9.785 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.5148, allocations: 123.3 kB / 0.9156 GB, free: 9.652 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.5148, allocations: 0 / 0.9156 GB, free: 9.652 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000237/0.5151, allocations: 153.5 kB / 0.9157 GB, free: 9.496 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.5151, allocations: 4 kB / 0.9157 GB, free: 9.492 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.5151, allocations: 8 kB / 0.9157 GB, free: 9.484 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.5151, allocations: 3.984 kB / 0.9157 GB, free: 9.48 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.5153, allocations: 35.98 kB / 0.9158 GB, free: 9.445 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.5153, allocations: 11.88 kB / 0.9158 GB, free: 9.434 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.971e-05/0.5154, allocations: 4 kB / 0.9158 GB, free: 9.43 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.5154, allocations: 8 kB / 0.9158 GB, free: 9.422 MB / 0.6856 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 (24): * Single equations (assignments): 24 * 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 9.099e-05/0.5155, allocations: 117.8 kB / 0.9159 GB, free: 9.297 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.261e-05/0.5155, allocations: 7.953 kB / 0.9159 GB, free: 9.289 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.025e-05/0.5156, allocations: 16.56 kB / 0.9159 GB, free: 9.277 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.5156, allocations: 8 kB / 0.9159 GB, free: 9.27 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.5156, allocations: 7.938 kB / 0.9159 GB, free: 9.262 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.5156, allocations: 3.984 kB / 0.9159 GB, free: 9.258 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.5157, allocations: 193.6 kB / 0.9161 GB, free: 9.02 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.5158, allocations: 0 / 0.9161 GB, free: 9.02 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/0.516, allocations: 35.92 kB / 0.9162 GB, free: 8.984 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.516, allocations: 4 kB / 0.9162 GB, free: 8.98 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.516, allocations: 4 kB / 0.9162 GB, free: 8.977 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.516, allocations: 0 / 0.9162 GB, free: 8.977 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.516, allocations: 3.938 kB / 0.9162 GB, free: 8.973 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003069/0.5163, allocations: 215.5 kB / 0.9164 GB, free: 8.746 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 7.709e-05/0.5164, allocations: 93.05 kB / 0.9165 GB, free: 8.637 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.5164, allocations: 4.062 kB / 0.9165 GB, free: 8.633 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.5166, allocations: 4 kB / 0.9165 GB, free: 8.629 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.869e-05/0.5166, allocations: 19.92 kB / 0.9165 GB, free: 8.609 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.5166, allocations: 4 kB / 0.9165 GB, free: 8.605 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 3.057e-05/0.5167, allocations: 83.2 kB / 0.9166 GB, free: 8.523 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5167, allocations: 4.094 kB / 0.9166 GB, free: 8.52 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0002326/0.5169, allocations: 35.94 kB / 0.9166 GB, free: 8.484 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hLiqSym,hSteSym,hAirSym,cpSym,cvSym) * 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 (19): * Single equations (assignments): 19 * 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.0005456/0.5175, allocations: 0.7432 MB / 0.9173 GB, free: 7.711 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0001982/0.5177, allocations: 104 kB / 0.9174 GB, free: 7.609 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5177, allocations: 0 / 0.9174 GB, free: 7.609 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 7.333e-05/0.5178, allocations: 55.92 kB / 0.9175 GB, free: 7.555 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.518, allocations: 18 kB / 0.9175 GB, free: 7.539 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.5198, allocations: 1.831 MB / 0.9193 GB, free: 5.609 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.52, allocations: 0.7008 MB / 0.92 GB, free: 4.883 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001029/0.5201, allocations: 20.64 kB / 0.92 GB, free: 4.863 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.548e-05/0.5202, allocations: 23.44 kB / 0.92 GB, free: 4.84 MB / 0.6856 GB Notification: Performance of SimCode: time 3.6e-07/0.5202, allocations: 0 / 0.92 GB, free: 4.84 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01803/0.5382, allocations: 2.441 MB / 0.9224 GB, free: 2.492 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.259/7.798, allocations: 19.23 kB / 0.9224 GB, free: 2.477 MB / 0.6856 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe 2>&1)