Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",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.007877/0.007878, allocations: 94.81 kB / 15.73 MB, free: 6.043 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.00203/0.00203, allocations: 204.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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002145/0.002145, allocations: 278.9 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9608/0.9608, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 91.84 kB / 0.6809 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1486, allocations: 86.98 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002296/0.1509, allocations: 1.271 MB / 0.7671 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.4559/0.6068, allocations: 147 MB / 0.9107 GB, free: 14.8 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.673e-05/0.6069, allocations: 0 / 0.9107 GB, free: 14.8 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 2.141e-05/0.6069, allocations: 7.922 kB / 0.9107 GB, free: 14.8 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 4.703e-05/0.607, allocations: 3.984 kB / 0.9107 GB, free: 14.79 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003867/0.6074, allocations: 97.06 kB / 0.9108 GB, free: 14.7 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 7.046e-05/0.6075, allocations: 31.86 kB / 0.9108 GB, free: 14.67 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.681e-05/0.6075, allocations: 7.922 kB / 0.9108 GB, free: 14.66 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 3.896e-05/0.6076, allocations: 15.98 kB / 0.9108 GB, free: 14.64 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 5.776e-05/0.6076, allocations: 19.92 kB / 0.9108 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.036e-05/0.6076, allocations: 0 / 0.9108 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000236/0.6079, allocations: 83.81 kB / 0.9109 GB, free: 14.54 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 1.333e-05/0.6079, allocations: 4 kB / 0.9109 GB, free: 14.54 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.391e-05/0.608, allocations: 15.94 kB / 0.9109 GB, free: 14.52 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.6081, allocations: 71.17 kB / 0.911 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.6081, allocations: 0 / 0.911 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.473e-06/0.6081, allocations: 0 / 0.911 GB, free: 14.46 MB / 0.67 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.6081, allocations: 0 / 0.911 GB, free: 14.46 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003603/0.6085, allocations: 357.2 kB / 0.9114 GB, free: 14.07 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.6085, allocations: 8.031 kB / 0.9114 GB, free: 14.06 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.401e-05/0.6086, allocations: 44.56 kB / 0.9114 GB, free: 14.01 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/0.6088, allocations: 9.5 kB / 0.9114 GB, free: 14 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.6089, allocations: 164.4 kB / 0.9116 GB, free: 13.8 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.6089, allocations: 7.938 kB / 0.9116 GB, free: 13.79 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.6089, allocations: 4 kB / 0.9116 GB, free: 13.79 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.609, allocations: 45.69 kB / 0.9116 GB, free: 13.74 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.453e-06/0.6091, allocations: 4 kB / 0.9116 GB, free: 13.73 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.6091, allocations: 7.984 kB / 0.9116 GB, free: 13.73 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.6091, allocations: 4 kB / 0.9116 GB, free: 13.72 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.75e-05/0.6091, allocations: 19.34 kB / 0.9117 GB, free: 13.71 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001631/0.6093, allocations: 177.4 kB / 0.9118 GB, free: 13.48 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 8.15e-05/0.6094, allocations: 46.56 kB / 0.9119 GB, free: 13.43 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.972e-05/0.6094, allocations: 16.86 kB / 0.9119 GB, free: 13.41 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.6095, allocations: 7.938 kB / 0.9119 GB, free: 13.4 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.6095, allocations: 34.55 kB / 0.9119 GB, free: 13.36 MB / 0.67 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.6095, allocations: 0 / 0.9119 GB, free: 13.36 MB / 0.67 GB Notification: Performance of matching and sorting (n=11): time 0.0006838/0.6102, allocations: 374.2 kB / 0.9123 GB, free: 12.95 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.6102, allocations: 55.41 kB / 0.9123 GB, free: 12.88 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.649e-05/0.6103, allocations: 97.86 kB / 0.9124 GB, free: 12.77 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.6103, allocations: 25.7 kB / 0.9125 GB, free: 12.74 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 2.613e-05/0.6103, allocations: 88.08 kB / 0.9125 GB, free: 12.65 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 4.374e-05/0.6104, allocations: 39.69 kB / 0.9126 GB, free: 12.61 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.373e-05/0.6104, allocations: 33.7 kB / 0.9126 GB, free: 12.57 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.536e-05/0.6105, allocations: 314.8 kB / 0.9129 GB, free: 12.26 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.563e-05/0.6106, allocations: 19.98 kB / 0.9129 GB, free: 12.24 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.591e-05/0.6106, allocations: 37.83 kB / 0.913 GB, free: 12.2 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.069e-05/0.6107, allocations: 65.64 kB / 0.913 GB, free: 12.12 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.6107, allocations: 0 / 0.913 GB, free: 12.12 MB / 0.67 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001283/0.6109, allocations: 95.19 kB / 0.9131 GB, free: 12.03 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.6109, allocations: 4 kB / 0.9131 GB, free: 12.02 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.6109, allocations: 4 kB / 0.9131 GB, free: 12.02 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.6109, allocations: 0 / 0.9131 GB, free: 12.02 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.611, allocations: 27.86 kB / 0.9132 GB, free: 11.99 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.6111, allocations: 4 kB / 0.9132 GB, free: 11.99 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.419e-05/0.6111, allocations: 4 kB / 0.9132 GB, free: 11.98 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.064e-06/0.6111, allocations: 8 kB / 0.9132 GB, free: 11.98 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 14 * 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 7.88e-05/0.6112, allocations: 118.4 kB / 0.9133 GB, free: 11.85 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.6112, allocations: 3.953 kB / 0.9133 GB, free: 11.85 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.944e-05/0.6112, allocations: 7.969 kB / 0.9133 GB, free: 11.84 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.6113, allocations: 4 kB / 0.9133 GB, free: 11.84 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.6113, allocations: 0 / 0.9133 GB, free: 11.84 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.6113, allocations: 0 / 0.9133 GB, free: 11.84 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.6114, allocations: 181.6 kB / 0.9135 GB, free: 11.61 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.6114, allocations: 0 / 0.9135 GB, free: 11.61 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.6115, allocations: 27.92 kB / 0.9135 GB, free: 11.59 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.6116, allocations: 0 / 0.9135 GB, free: 11.59 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.6116, allocations: 4 kB / 0.9135 GB, free: 11.58 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.6116, allocations: 3.938 kB / 0.9135 GB, free: 11.58 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.6116, allocations: 0 / 0.9135 GB, free: 11.58 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001905/0.6118, allocations: 133.9 kB / 0.9136 GB, free: 11.43 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 6.106e-05/0.6118, allocations: 85.09 kB / 0.9137 GB, free: 11.33 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.6119, allocations: 4 kB / 0.9137 GB, free: 11.33 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.661e-05/0.612, allocations: 8 kB / 0.9137 GB, free: 11.32 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.804e-05/0.612, allocations: 7.984 kB / 0.9137 GB, free: 11.31 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/0.612, allocations: 4 kB / 0.9137 GB, free: 11.31 MB / 0.67 GB Notification: Performance of sorting global known variables: time 3.751e-05/0.612, allocations: 83.22 kB / 0.9138 GB, free: 11.23 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.41e-07/0.612, allocations: 0 / 0.9138 GB, free: 11.23 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0002019/0.6123, allocations: 15.94 kB / 0.9138 GB, free: 11.21 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * 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 (11): * Single equations (assignments): 11 * 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.0004066/0.6127, allocations: 0.6775 MB / 0.9145 GB, free: 10.5 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0001203/0.6128, allocations: 51.97 kB / 0.9145 GB, free: 10.45 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.6128, allocations: 3.938 kB / 0.9145 GB, free: 10.45 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 4.037e-05/0.6129, allocations: 32.47 kB / 0.9146 GB, free: 10.42 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.6131, allocations: 11.36 kB / 0.9146 GB, free: 10.41 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.6144, allocations: 1.449 MB / 0.916 GB, free: 8.883 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.6146, allocations: 0.6924 MB / 0.9167 GB, free: 8.164 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 5.201e-05/0.6146, allocations: 4.672 kB / 0.9167 GB, free: 8.16 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.86e-05/0.6147, allocations: 23.38 kB / 0.9167 GB, free: 8.137 MB / 0.67 GB Notification: Performance of SimCode: time 2.51e-07/0.6147, allocations: 0 / 0.9167 GB, free: 8.137 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0183/0.633, allocations: 1.7 MB / 0.9184 GB, free: 6.586 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.152/7.785, allocations: 28.52 kB / 0.9184 GB, free: 6.566 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_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_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)