Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_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.001107/0.001108, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.001299/0.001299, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 205.4 MB / 222.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.698/1.698, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005082/0.0005082, allocations: 16.62 kB / 0.6738 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2573, allocations: 116.3 MB / 0.7874 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001216/0.2586, allocations: 0.9976 MB / 0.7884 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.6306/0.8892, allocations: 133.5 MB / 0.9187 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.208e-05/0.8893, allocations: 0 / 0.9187 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.432e-05/0.8893, allocations: 3.281 kB / 0.9187 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.627e-05/0.8894, allocations: 8.516 kB / 0.9187 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004259/0.8898, allocations: 82.69 kB / 0.9188 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.15e-05/0.8899, allocations: 25.95 kB / 0.9188 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.468e-05/0.89, allocations: 1.641 kB / 0.9188 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.863e-05/0.8901, allocations: 18.39 kB / 0.9188 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.799e-05/0.8902, allocations: 15.69 kB / 0.9188 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.8902, allocations: 1.5 kB / 0.9188 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002989/0.8905, allocations: 73.8 kB / 0.9189 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.727e-05/0.8905, allocations: 18.91 kB / 0.9189 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0004324/0.891, allocations: 30.77 kB / 0.919 GB, free: 21.81 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001673/0.8912, allocations: 46.11 kB / 0.919 GB, free: 21.81 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.8912, allocations: 0 / 0.919 GB, free: 21.81 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.164e-06/0.8912, allocations: 2.875 kB / 0.919 GB, free: 21.81 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.8912, allocations: 0 / 0.919 GB, free: 21.81 MB / 0.7325 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.0004862/0.8917, allocations: 336.6 kB / 0.9193 GB, free: 21.45 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.691e-05/0.8917, allocations: 9.5 kB / 0.9193 GB, free: 21.45 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.317e-05/0.8918, allocations: 36.48 kB / 0.9194 GB, free: 21.41 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002373/0.8921, allocations: 21.39 kB / 0.9194 GB, free: 21.4 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.8922, allocations: 167 kB / 0.9196 GB, free: 21.2 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.8922, allocations: 4.875 kB / 0.9196 GB, free: 21.2 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/0.8923, allocations: 8.078 kB / 0.9196 GB, free: 21.2 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001443/0.8924, allocations: 50.92 kB / 0.9196 GB, free: 21.17 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.8924, allocations: 0 / 0.9196 GB, free: 21.17 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.8924, allocations: 0.9688 kB / 0.9196 GB, free: 21.17 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.8925, allocations: 2.719 kB / 0.9196 GB, free: 21.17 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.515e-05/0.8925, allocations: 23.92 kB / 0.9196 GB, free: 21.17 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001629/0.8927, allocations: 162.6 kB / 0.9198 GB, free: 20.98 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.979e-05/0.8928, allocations: 53.03 kB / 0.9199 GB, free: 20.95 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.809e-05/0.8928, allocations: 16.53 kB / 0.9199 GB, free: 20.95 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.315e-05/0.8928, allocations: 0.9688 kB / 0.9199 GB, free: 20.95 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.8929, allocations: 33.94 kB / 0.9199 GB, free: 20.91 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.8929, allocations: 0.7812 kB / 0.9199 GB, free: 20.91 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0007323/0.8936, allocations: 381.9 kB / 0.9203 GB, free: 20.64 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.8937, allocations: 52.38 kB / 0.9203 GB, free: 20.58 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.052e-05/0.8937, allocations: 93.62 kB / 0.9204 GB, free: 20.48 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.8938, allocations: 29.73 kB / 0.9204 GB, free: 20.45 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.359e-05/0.8938, allocations: 80.14 kB / 0.9205 GB, free: 20.37 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.002e-05/0.8938, allocations: 41.66 kB / 0.9205 GB, free: 20.34 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-06/0.8938, allocations: 4 kB / 0.9206 GB, free: 20.34 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.8939, allocations: 318.4 kB / 0.9209 GB, free: 20.03 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.623e-05/0.894, allocations: 18.12 kB / 0.9209 GB, free: 20.03 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.851e-05/0.894, allocations: 34.05 kB / 0.9209 GB, free: 20.01 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.43e-05/0.8941, allocations: 24.72 kB / 0.9209 GB, free: 20.01 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.71e-07/0.8941, allocations: 0 / 0.9209 GB, free: 20.01 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001402/0.8942, allocations: 97.34 kB / 0.921 GB, free: 19.98 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.8943, allocations: 5 kB / 0.921 GB, free: 19.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.8943, allocations: 5.672 kB / 0.921 GB, free: 19.97 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.8943, allocations: 1.125 kB / 0.921 GB, free: 19.97 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.8944, allocations: 22.47 kB / 0.9211 GB, free: 19.97 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.8945, allocations: 6.016 kB / 0.9211 GB, free: 19.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.099e-05/0.8945, allocations: 5.094 kB / 0.9211 GB, free: 19.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.8945, allocations: 6.375 kB / 0.9211 GB, free: 19.96 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.368e-05/0.8946, allocations: 115.3 kB / 0.9212 GB, free: 19.85 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.8946, allocations: 6.25 kB / 0.9212 GB, free: 19.85 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.063e-05/0.8947, allocations: 15 kB / 0.9212 GB, free: 19.84 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.8947, allocations: 2.281 kB / 0.9212 GB, free: 19.84 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.8947, allocations: 0 / 0.9212 GB, free: 19.84 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.8947, allocations: 5.547 kB / 0.9212 GB, free: 19.84 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001517/0.8948, allocations: 170.8 kB / 0.9214 GB, free: 19.65 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.8949, allocations: 1.016 kB / 0.9214 GB, free: 19.65 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001373/0.895, allocations: 26.42 kB / 0.9214 GB, free: 19.65 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.895, allocations: 1.422 kB / 0.9214 GB, free: 19.65 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.895, allocations: 0.8438 kB / 0.9214 GB, free: 19.65 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.895, allocations: 1.641 kB / 0.9214 GB, free: 19.65 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.8951, allocations: 0 / 0.9214 GB, free: 19.65 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.8953, allocations: 140.1 kB / 0.9215 GB, free: 19.57 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.8955, allocations: 83.09 kB / 0.9216 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.8955, allocations: 5.812 kB / 0.9216 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.468e-05/0.8956, allocations: 4.031 kB / 0.9216 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.8957, allocations: 8.719 kB / 0.9216 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.8957, allocations: 5.156 kB / 0.9216 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.944e-05/0.8958, allocations: 80.72 kB / 0.9217 GB, free: 19.4 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8958, allocations: 0 / 0.9217 GB, free: 19.4 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002537/0.896, allocations: 15.7 kB / 0.9217 GB, free: 19.4 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005319/0.8966, allocations: 0.6726 MB / 0.9224 GB, free: 18.8 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001473/0.8967, allocations: 57.28 kB / 0.9224 GB, free: 18.8 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.8967, allocations: 4.75 kB / 0.9224 GB, free: 18.8 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.114e-05/0.8968, allocations: 30.2 kB / 0.9225 GB, free: 18.8 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.897, allocations: 6.547 kB / 0.9225 GB, free: 18.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.8981, allocations: 0.6822 MB / 0.9231 GB, free: 18.3 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.8983, allocations: 0.6849 MB / 0.9238 GB, free: 17.61 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.147e-05/0.8984, allocations: 10.52 kB / 0.9238 GB, free: 17.6 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.404e-05/0.8985, allocations: 22.83 kB / 0.9238 GB, free: 17.59 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.8985, allocations: 0.8125 kB / 0.9238 GB, free: 17.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0129/0.9114, allocations: 1.428 MB / 0.9252 GB, free: 17.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001932/0.9116, allocations: 210.2 kB / 0.9254 GB, free: 17.19 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/2.616, allocations: 0 / 0.9254 GB, free: 17.19 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) Environment - environmentSimulation: