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.005089/0.005089, allocations: 99.34 kB / 15.73 MB, free: 6.035 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.001468/0.001468, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.345/1.345, 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.002437/0.002437, allocations: 290.4 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9818/0.9818, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002648/0.002648, allocations: 105.6 kB / 0.681 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1503, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002208/0.1526, allocations: 1.262 MB / 0.7671 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.4329/0.5854, allocations: 147 MB / 0.9107 GB, free: 14.94 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.693e-05/0.5855, allocations: 1.219 kB / 0.9107 GB, free: 14.94 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 2.253e-05/0.5855, allocations: 3.984 kB / 0.9107 GB, free: 14.94 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 4.279e-05/0.5856, allocations: 3.938 kB / 0.9107 GB, free: 14.93 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003623/0.586, allocations: 95.56 kB / 0.9108 GB, free: 14.84 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 7.401e-05/0.5861, allocations: 31.91 kB / 0.9108 GB, free: 14.81 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.257e-05/0.5861, allocations: 0 / 0.9108 GB, free: 14.81 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 3.983e-05/0.5862, allocations: 19.92 kB / 0.9108 GB, free: 14.79 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 6.012e-05/0.5862, allocations: 23.91 kB / 0.9108 GB, free: 14.77 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.046e-05/0.5862, allocations: 0 / 0.9108 GB, free: 14.77 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002355/0.5865, allocations: 75.78 kB / 0.9109 GB, free: 14.69 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 1.716e-05/0.5865, allocations: 7.984 kB / 0.9109 GB, free: 14.68 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.07e-05/0.5865, allocations: 19.92 kB / 0.9109 GB, free: 14.66 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.5867, allocations: 67.75 kB / 0.911 GB, free: 14.61 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.5867, allocations: 4 kB / 0.911 GB, free: 14.6 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.052e-06/0.5867, allocations: 0 / 0.911 GB, free: 14.6 MB / 0.67 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.5867, allocations: 0 / 0.911 GB, free: 14.6 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.0004116/0.5871, allocations: 353.2 kB / 0.9114 GB, free: 14.21 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.5872, allocations: 8.031 kB / 0.9114 GB, free: 14.2 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.964e-05/0.5872, allocations: 36.61 kB / 0.9114 GB, free: 14.16 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.5874, allocations: 8.938 kB / 0.9114 GB, free: 14.15 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.5875, allocations: 164.4 kB / 0.9116 GB, free: 13.95 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.5875, allocations: 15.92 kB / 0.9116 GB, free: 13.94 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.894e-05/0.5876, allocations: 4 kB / 0.9116 GB, free: 13.93 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.5877, allocations: 53.62 kB / 0.9116 GB, free: 13.88 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.5877, allocations: 0 / 0.9116 GB, free: 13.88 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.5877, allocations: 0.5 kB / 0.9116 GB, free: 13.88 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.5877, allocations: 0 / 0.9116 GB, free: 13.88 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.601e-05/0.5878, allocations: 17.62 kB / 0.9116 GB, free: 13.86 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001818/0.588, allocations: 181.5 kB / 0.9118 GB, free: 13.63 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 8.847e-05/0.5881, allocations: 52 kB / 0.9119 GB, free: 13.57 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.537e-05/0.5881, allocations: 16.8 kB / 0.9119 GB, free: 13.55 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.5881, allocations: 4 kB / 0.9119 GB, free: 13.55 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.5882, allocations: 34.5 kB / 0.9119 GB, free: 13.51 MB / 0.67 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.5882, allocations: 0 / 0.9119 GB, free: 13.51 MB / 0.67 GB Notification: Performance of matching and sorting (n=11): time 0.0007121/0.5889, allocations: 375.8 kB / 0.9123 GB, free: 13.09 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.5889, allocations: 55.41 kB / 0.9123 GB, free: 13.02 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.55e-05/0.589, allocations: 93.86 kB / 0.9124 GB, free: 12.92 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.589, allocations: 25.7 kB / 0.9124 GB, free: 12.89 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 3.591e-05/0.5891, allocations: 84.08 kB / 0.9125 GB, free: 12.8 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 4.326e-05/0.5891, allocations: 43.69 kB / 0.9126 GB, free: 12.76 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.076e-05/0.5892, allocations: 33.7 kB / 0.9126 GB, free: 12.72 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.5893, allocations: 314.9 kB / 0.9129 GB, free: 12.41 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.399e-05/0.5894, allocations: 27.98 kB / 0.9129 GB, free: 12.38 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.773e-05/0.5894, allocations: 33.64 kB / 0.913 GB, free: 12.34 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.893e-05/0.5895, allocations: 59.28 kB / 0.913 GB, free: 12.28 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.12e-07/0.5895, allocations: 0 / 0.913 GB, free: 12.28 MB / 0.67 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001395/0.5897, allocations: 97.56 kB / 0.9131 GB, free: 12.18 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.5897, allocations: 7.984 kB / 0.9131 GB, free: 12.17 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.317e-06/0.5897, allocations: 0 / 0.9131 GB, free: 12.17 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.5897, allocations: 7.984 kB / 0.9131 GB, free: 12.16 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.5898, allocations: 20 kB / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.5898, allocations: 8.641 kB / 0.9132 GB, free: 12.13 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.55e-05/0.5899, allocations: 6 kB / 0.9132 GB, free: 12.13 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.5899, allocations: 4 kB / 0.9132 GB, free: 12.12 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 8.096e-05/0.59, allocations: 122.4 kB / 0.9133 GB, free: 12 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.859e-05/0.59, allocations: 7.953 kB / 0.9133 GB, free: 11.99 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.19e-05/0.59, allocations: 11.97 kB / 0.9133 GB, free: 11.98 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.59, allocations: 4 kB / 0.9133 GB, free: 11.98 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.59, allocations: 0 / 0.9133 GB, free: 11.98 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.5901, allocations: 4 kB / 0.9133 GB, free: 11.97 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000141/0.5902, allocations: 173.6 kB / 0.9135 GB, free: 11.75 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.5902, allocations: 0 / 0.9135 GB, free: 11.75 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.5903, allocations: 23.98 kB / 0.9135 GB, free: 11.73 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.5903, allocations: 0 / 0.9135 GB, free: 11.73 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.5903, allocations: 0 / 0.9135 GB, free: 11.73 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.5904, allocations: 4 kB / 0.9135 GB, free: 11.73 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.5904, allocations: 0 / 0.9135 GB, free: 11.73 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002026/0.5906, allocations: 137.9 kB / 0.9136 GB, free: 11.57 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 7.045e-05/0.5906, allocations: 89.09 kB / 0.9137 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.5907, allocations: 11.5 kB / 0.9137 GB, free: 11.46 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.751e-05/0.5908, allocations: 0 / 0.9137 GB, free: 11.46 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.727e-05/0.5908, allocations: 7.984 kB / 0.9137 GB, free: 11.45 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.5908, allocations: 8 kB / 0.9137 GB, free: 11.45 MB / 0.67 GB Notification: Performance of sorting global known variables: time 3.567e-05/0.5908, allocations: 75.28 kB / 0.9138 GB, free: 11.37 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5908, allocations: 0 / 0.9138 GB, free: 11.37 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0001983/0.591, allocations: 15.94 kB / 0.9138 GB, free: 11.36 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.0004681/0.5915, allocations: 0.6774 MB / 0.9145 GB, free: 10.65 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0001227/0.5916, allocations: 56.08 kB / 0.9145 GB, free: 10.59 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.5917, allocations: 3.938 kB / 0.9145 GB, free: 10.59 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 4.054e-05/0.5917, allocations: 27.98 kB / 0.9146 GB, free: 10.56 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001963/0.5919, allocations: 12 kB / 0.9146 GB, free: 10.55 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.5933, allocations: 1.454 MB / 0.916 GB, free: 9.02 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.5936, allocations: 0.6807 MB / 0.9167 GB, free: 8.312 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 5.5e-05/0.5937, allocations: 16.64 kB / 0.9167 GB, free: 8.297 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.038e-05/0.5937, allocations: 23.44 kB / 0.9167 GB, free: 8.273 MB / 0.67 GB Notification: Performance of SimCode: time 2.5e-07/0.5937, allocations: 0 / 0.9167 GB, free: 8.273 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.6172, allocations: 1.707 MB / 0.9184 GB, free: 6.727 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.471/8.088, allocations: 15.28 kB / 0.9184 GB, free: 6.715 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)