Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_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.001488/0.001488, allocations: 105.2 kB / 16.4 MB, free: 6.398 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.001711/0.001711, allocations: 196 kB / 17.34 MB, free: 5.691 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7368/0.7368, allocations: 122.9 MB / 414.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 66.64 kB / 0.5679 GB, free: 28.97 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1379, allocations: 77.93 MB / 0.644 GB, free: 9.559 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002195/0.1401, allocations: 1.262 MB / 0.6453 GB, free: 8.285 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.5083/0.6485, allocations: 147 MB / 0.7888 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.588e-05/0.6485, allocations: 5.406 kB / 0.7888 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 3.311e-05/0.6486, allocations: 6.562 kB / 0.7888 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 5.692e-05/0.6487, allocations: 7.297 kB / 0.7888 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005087/0.6492, allocations: 99.77 kB / 0.7889 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 8.928e-05/0.6493, allocations: 29.8 kB / 0.7889 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 4.181e-05/0.6494, allocations: 2.188 kB / 0.789 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 5.441e-05/0.6494, allocations: 17.67 kB / 0.789 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 6.562e-05/0.6495, allocations: 14.06 kB / 0.789 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.6495, allocations: 6.125 kB / 0.789 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002638/0.6498, allocations: 83.33 kB / 0.7891 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 1.695e-05/0.6498, allocations: 7.906 kB / 0.7891 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 3.13e-05/0.6499, allocations: 18.23 kB / 0.7891 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.65, allocations: 62.19 kB / 0.7892 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.6501, allocations: 0 / 0.7892 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.292e-06/0.6501, allocations: 5.375 kB / 0.7892 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.6501, allocations: 0 / 0.7892 GB, free: 13.09 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004/0.6505, allocations: 359.8 kB / 0.7895 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.6505, allocations: 9.938 kB / 0.7895 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.6506, allocations: 35.59 kB / 0.7895 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.6507, allocations: 12.03 kB / 0.7896 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.713e-05/0.6509, allocations: 163.7 kB / 0.7897 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.6509, allocations: 6.422 kB / 0.7897 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.6509, allocations: 12.64 kB / 0.7897 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.651, allocations: 54.38 kB / 0.7898 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.076e-06/0.651, allocations: 0 / 0.7898 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.6511, allocations: 4 kB / 0.7898 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.6511, allocations: 2 kB / 0.7898 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.747e-05/0.6511, allocations: 20.8 kB / 0.7898 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001634/0.6513, allocations: 168.1 kB / 0.79 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 9.109e-05/0.6514, allocations: 46.5 kB / 0.79 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.083e-05/0.6514, allocations: 18.52 kB / 0.79 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/0.6515, allocations: 0 / 0.79 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.6515, allocations: 37.94 kB / 0.7901 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.6515, allocations: 1.438 kB / 0.7901 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of matching and sorting (n=11): time 0.0007096/0.6522, allocations: 374 kB / 0.7904 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.6523, allocations: 53.83 kB / 0.7905 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.134e-05/0.6523, allocations: 94.89 kB / 0.7906 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.6523, allocations: 27.05 kB / 0.7906 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 2.819e-05/0.6524, allocations: 87.23 kB / 0.7907 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.342e-05/0.6524, allocations: 39.88 kB / 0.7907 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.296e-05/0.6525, allocations: 30.92 kB / 0.7907 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.6526, allocations: 325.5 kB / 0.7911 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.665e-05/0.6526, allocations: 17.28 kB / 0.7911 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.077e-05/0.6527, allocations: 41.67 kB / 0.7911 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.117e-05/0.6528, allocations: 64.28 kB / 0.7912 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.6528, allocations: 5.375 kB / 0.7912 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001243/0.6529, allocations: 92.14 kB / 0.7913 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.6529, allocations: 6 kB / 0.7913 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.653, allocations: 1.375 kB / 0.7913 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.653, allocations: 1.375 kB / 0.7913 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.6531, allocations: 27.62 kB / 0.7913 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.6531, allocations: 1.375 kB / 0.7913 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.306e-05/0.6531, allocations: 1.375 kB / 0.7913 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.894e-06/0.6532, allocations: 6.062 kB / 0.7913 GB, free: 11.19 MB / 0.5919 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.745e-05/0.6532, allocations: 122.3 kB / 0.7914 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.591e-05/0.6533, allocations: 6.703 kB / 0.7914 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.541e-05/0.6533, allocations: 12.22 kB / 0.7914 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.6533, allocations: 2.469 kB / 0.7914 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.6533, allocations: 0 / 0.7914 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.6533, allocations: 6.094 kB / 0.7914 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.6534, allocations: 174.6 kB / 0.7916 GB, free: 10.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.6535, allocations: 0 / 0.7916 GB, free: 10.87 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.6536, allocations: 20.27 kB / 0.7916 GB, free: 10.87 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.6536, allocations: 1.375 kB / 0.7916 GB, free: 10.87 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.6536, allocations: 7.312 kB / 0.7916 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.6536, allocations: 1.375 kB / 0.7916 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.6536, allocations: 1.203 kB / 0.7916 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.6538, allocations: 132.5 kB / 0.7918 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.804e-05/0.6539, allocations: 88.17 kB / 0.7919 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.6539, allocations: 5.312 kB / 0.7919 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.294e-05/0.654, allocations: 4.562 kB / 0.7919 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-05/0.654, allocations: 14.73 kB / 0.7919 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-06/0.654, allocations: 5.141 kB / 0.7919 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 2.857e-05/0.6541, allocations: 76.66 kB / 0.792 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6541, allocations: 1.203 kB / 0.792 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001995/0.6543, allocations: 20 kB / 0.792 GB, free: 10.61 MB / 0.5919 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.0003915/0.6547, allocations: 0.6687 MB / 0.7926 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001225/0.6548, allocations: 56.06 kB / 0.7927 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.6548, allocations: 0 / 0.7927 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 3.843e-05/0.6549, allocations: 33.31 kB / 0.7927 GB, free: 10 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.6551, allocations: 9.656 kB / 0.7927 GB, free: 10 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.6563, allocations: 1.45 MB / 0.7941 GB, free: 8.75 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.6565, allocations: 0.6879 MB / 0.7948 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 5.137e-05/0.6566, allocations: 8.328 kB / 0.7948 GB, free: 8.051 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.156e-05/0.6567, allocations: 21.28 kB / 0.7948 GB, free: 8.043 MB / 0.5919 GB Notification: Performance of SimCode: time 2.5e-07/0.6567, allocations: 4 kB / 0.7948 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01641/0.6731, allocations: 1.681 MB / 0.7965 GB, free: 7.656 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.445/8.118, allocations: 5.109 kB / 0.7965 GB, free: 7.652 MB / 0.5919 GB (rm -f IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)