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.0009919/0.000992, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001007/0.001007, allocations: 188.1 kB / 16.25 MB, free: 6.629 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.239/1.239, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001915/0.001915, allocations: 290.8 kB / 290.4 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8664/0.8664, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 91.64 kB / 0.5948 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1318, allocations: 86.98 MB / 0.6797 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002047/0.1339, allocations: 1.33 MB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.372/0.5059, allocations: 144.8 MB / 0.8225 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.516e-05/0.506, allocations: 5.344 kB / 0.8225 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.713e-05/0.506, allocations: 2.766 kB / 0.8225 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.894e-05/0.5061, allocations: 0 / 0.8225 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003187/0.5064, allocations: 85.95 kB / 0.8226 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.292e-05/0.5065, allocations: 32.36 kB / 0.8226 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 2.797e-05/0.5065, allocations: 0.8125 kB / 0.8226 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.388e-05/0.5065, allocations: 15.12 kB / 0.8226 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.63e-05/0.5066, allocations: 16.33 kB / 0.8226 GB, free: 0.9062 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.5066, allocations: 2.188 kB / 0.8226 GB, free: 0.9062 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.5068, allocations: 78.97 kB / 0.8227 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.204e-05/0.5068, allocations: 5.469 kB / 0.8227 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.778e-05/0.5069, allocations: 18.31 kB / 0.8227 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.507, allocations: 64.52 kB / 0.8228 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.507, allocations: 4 kB / 0.8228 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.413e-06/0.507, allocations: 4.438 kB / 0.8228 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.507, allocations: 3.938 kB / 0.8228 GB, free: 0.8711 MB / 0.5606 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.0003434/0.5074, allocations: 356.4 kB / 0.8231 GB, free: 16.51 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.5074, allocations: 9.5 kB / 0.8232 GB, free: 16.51 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.816e-05/0.5075, allocations: 40.03 kB / 0.8232 GB, free: 16.46 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.5076, allocations: 12.2 kB / 0.8232 GB, free: 16.46 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.259e-05/0.5077, allocations: 166 kB / 0.8234 GB, free: 16.27 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.604e-06/0.5077, allocations: 11.75 kB / 0.8234 GB, free: 16.26 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.5078, allocations: 10.69 kB / 0.8234 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001002/0.5079, allocations: 49.02 kB / 0.8234 GB, free: 16.22 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.531e-06/0.5079, allocations: 0.875 kB / 0.8234 GB, free: 16.22 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.5079, allocations: 0.75 kB / 0.8234 GB, free: 16.22 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.5079, allocations: 1.156 kB / 0.8234 GB, free: 16.22 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.225e-05/0.5079, allocations: 20.92 kB / 0.8235 GB, free: 16.22 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001238/0.5081, allocations: 168.3 kB / 0.8236 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 7.982e-05/0.5082, allocations: 51.16 kB / 0.8237 GB, free: 16 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.45e-05/0.5082, allocations: 17.3 kB / 0.8237 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.045e-05/0.5082, allocations: 1.812 kB / 0.8237 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.5082, allocations: 35.12 kB / 0.8237 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.5082, allocations: 0 / 0.8237 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0006322/0.5089, allocations: 375.3 kB / 0.8241 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.5089, allocations: 53.22 kB / 0.8241 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.695e-05/0.509, allocations: 94.45 kB / 0.8242 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.509, allocations: 30.98 kB / 0.8242 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.313e-05/0.509, allocations: 84.23 kB / 0.8243 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.509, allocations: 36.23 kB / 0.8244 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.713e-05/0.5091, allocations: 27.67 kB / 0.8244 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.937e-05/0.5092, allocations: 322.4 kB / 0.8247 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.622e-05/0.5092, allocations: 21.28 kB / 0.8247 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.935e-05/0.5093, allocations: 38.95 kB / 0.8247 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.64e-05/0.5094, allocations: 60.05 kB / 0.8248 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.5094, allocations: 0.5 kB / 0.8248 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001529/0.5095, allocations: 97.59 kB / 0.8249 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.5096, allocations: 4.781 kB / 0.8249 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.5096, allocations: 0.5312 kB / 0.8249 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.5096, allocations: 4.078 kB / 0.8249 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.5097, allocations: 26 kB / 0.8249 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.5097, allocations: 3.891 kB / 0.8249 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.064e-05/0.5098, allocations: 8.453 kB / 0.8249 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.5098, allocations: 2.688 kB / 0.8249 GB, free: 14.96 MB / 0.5762 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.051e-05/0.5098, allocations: 118.2 kB / 0.8251 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.483e-05/0.5099, allocations: 2.875 kB / 0.8251 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.8e-05/0.5099, allocations: 11.28 kB / 0.8251 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.5099, allocations: 5.562 kB / 0.8251 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5099, allocations: 4 kB / 0.8251 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.5099, allocations: 6.5 kB / 0.8251 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.035e-05/0.51, allocations: 172.1 kB / 0.8253 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.51, allocations: 1.344 kB / 0.8253 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.5101, allocations: 24.08 kB / 0.8253 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.5102, allocations: 0.6562 kB / 0.8253 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.5102, allocations: 1.031 kB / 0.8253 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.5102, allocations: 2.344 kB / 0.8253 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5102, allocations: 0.6875 kB / 0.8253 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001872/0.5104, allocations: 141.9 kB / 0.8254 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.5104, allocations: 82.12 kB / 0.8255 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.5104, allocations: 5 kB / 0.8255 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.016e-05/0.5105, allocations: 8.531 kB / 0.8255 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.983e-05/0.5106, allocations: 5.844 kB / 0.8255 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.5106, allocations: 6.094 kB / 0.8255 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 2.654e-05/0.5106, allocations: 76.41 kB / 0.8256 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5106, allocations: 0.5938 kB / 0.8256 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001901/0.5108, allocations: 23.56 kB / 0.8256 GB, free: 14.39 MB / 0.5762 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.0004604/0.5113, allocations: 0.6639 MB / 0.8263 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001111/0.5114, allocations: 66.91 kB / 0.8263 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5114, allocations: 0 / 0.8263 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 3.323e-05/0.5114, allocations: 29.8 kB / 0.8264 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/0.5116, allocations: 10.81 kB / 0.8264 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.5127, allocations: 1.456 MB / 0.8278 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.5129, allocations: 0.6852 MB / 0.8285 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.87e-05/0.513, allocations: 14.55 kB / 0.8285 GB, free: 11.81 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.308e-05/0.5131, allocations: 15.56 kB / 0.8285 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of SimCode: time 2.21e-07/0.5131, allocations: 1.062 kB / 0.8285 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7668/1.28, allocations: 1.585 MB / 0.83 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000235/1.28, allocations: 238.8 kB / 0.8303 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.291/3.571, allocations: 1.219 kB / 0.8303 GB, free: 11.32 MB / 0.5762 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)