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: translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 105.4 kB / 15.99 MB, free: 6.355 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.001266/0.001266, allocations: 196.5 kB / 16.91 MB, free: 6.191 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.193/1.193, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001967/0.001967, allocations: 280 kB / 291 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.859/0.859, allocations: 169.2 MB / 0.4985 GB, free: 4.648 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 87.58 kB / 0.5953 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1514, allocations: 86.97 MB / 0.6803 GB, free: 8.57 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002089/0.1535, allocations: 1.353 MB / 0.6816 GB, free: 7.203 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3715/0.5251, allocations: 144.8 MB / 0.823 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.639e-05/0.5252, allocations: 0 / 0.823 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 2.202e-05/0.5252, allocations: 3.984 kB / 0.823 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 4.689e-05/0.5253, allocations: 0 / 0.823 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.5257, allocations: 84.02 kB / 0.8231 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 6.03e-05/0.5258, allocations: 31.91 kB / 0.8231 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.873e-05/0.5258, allocations: 4 kB / 0.8231 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 4.231e-05/0.5259, allocations: 19.92 kB / 0.8232 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 4.767e-05/0.5259, allocations: 15.92 kB / 0.8232 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.5259, allocations: 0 / 0.8232 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000246/0.5262, allocations: 83.83 kB / 0.8233 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 1.403e-05/0.5262, allocations: 7.984 kB / 0.8233 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.5262, allocations: 15.92 kB / 0.8233 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.5263, allocations: 51.52 kB / 0.8233 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.5264, allocations: 0 / 0.8233 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5264, allocations: 3.938 kB / 0.8233 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.164e-06/0.5264, allocations: 0 / 0.8233 GB, free: 13.17 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.0003486/0.5267, allocations: 351.5 kB / 0.8237 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.5268, allocations: 12.03 kB / 0.8237 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001818/0.527, allocations: 8.938 kB / 0.8237 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.293e-05/0.5271, allocations: 169.1 kB / 0.8239 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.475e-06/0.5271, allocations: 5.156 kB / 0.8239 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.655e-05/0.5271, allocations: 15.89 kB / 0.8239 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.5272, allocations: 45.69 kB / 0.8239 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.5272, allocations: 0 / 0.8239 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.5273, allocations: 7.938 kB / 0.8239 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.5273, allocations: 8 kB / 0.8239 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.553e-05/0.5273, allocations: 19.91 kB / 0.824 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/0.5275, allocations: 161.7 kB / 0.8241 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 7.605e-05/0.5276, allocations: 50.5 kB / 0.8242 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.629e-05/0.5276, allocations: 16.86 kB / 0.8242 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.5276, allocations: 0 / 0.8242 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.5276, allocations: 38.55 kB / 0.8242 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.5276, allocations: 0 / 0.8242 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of matching and sorting (n=11): time 0.0006605/0.5283, allocations: 379.8 kB / 0.8246 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.723e-05/0.5283, allocations: 55.41 kB / 0.8246 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.561e-05/0.5284, allocations: 93.86 kB / 0.8247 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.5284, allocations: 25.7 kB / 0.8247 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 2.196e-05/0.5284, allocations: 84.27 kB / 0.8248 GB, free: 11.41 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.025e-05/0.5285, allocations: 43.45 kB / 0.8249 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.903e-05/0.5285, allocations: 29.7 kB / 0.8249 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.953e-05/0.5286, allocations: 314.8 kB / 0.8252 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.408e-05/0.5287, allocations: 19.98 kB / 0.8252 GB, free: 11 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.406e-05/0.5287, allocations: 35.08 kB / 0.8252 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.112e-05/0.5288, allocations: 72.08 kB / 0.8253 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.5288, allocations: 4 kB / 0.8253 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001176/0.5289, allocations: 89.67 kB / 0.8254 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.529, allocations: 6.031 kB / 0.8254 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.529, allocations: 4 kB / 0.8254 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.529, allocations: 0 / 0.8254 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.5291, allocations: 19.94 kB / 0.8254 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.5291, allocations: 9 kB / 0.8254 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.154e-05/0.5291, allocations: 4.75 kB / 0.8254 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.5292, allocations: 4 kB / 0.8254 GB, free: 10.75 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.284e-05/0.5292, allocations: 117.8 kB / 0.8256 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.424e-05/0.5293, allocations: 7.906 kB / 0.8256 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.262e-05/0.5293, allocations: 7.969 kB / 0.8256 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.5293, allocations: 4 kB / 0.8256 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5293, allocations: 0 / 0.8256 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.5293, allocations: 0 / 0.8256 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.5294, allocations: 180 kB / 0.8257 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.5294, allocations: 4 kB / 0.8257 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.5296, allocations: 23.92 kB / 0.8258 GB, free: 10.35 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.5296, allocations: 0 / 0.8258 GB, free: 10.35 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.5296, allocations: 8 kB / 0.8258 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.5296, allocations: 0 / 0.8258 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.5296, allocations: 0 / 0.8258 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001744/0.5298, allocations: 136.9 kB / 0.8259 GB, free: 10.19 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.5298, allocations: 81.14 kB / 0.826 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.5299, allocations: 4 kB / 0.826 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.117e-05/0.5299, allocations: 4 kB / 0.826 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.146e-05/0.53, allocations: 11.92 kB / 0.826 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.53, allocations: 8 kB / 0.826 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 2.615e-05/0.53, allocations: 79.28 kB / 0.8261 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/0.53, allocations: 0 / 0.8261 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001934/0.5302, allocations: 12 kB / 0.8261 GB, free: 9.977 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 9.268e-05/0.5303, allocations: 111.1 kB / 0.8262 GB, free: 9.855 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001226/0.5305, allocations: 59.91 kB / 0.8263 GB, free: 9.797 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5305, allocations: 0 / 0.8263 GB, free: 9.797 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 3.386e-05/0.5305, allocations: 35.95 kB / 0.8263 GB, free: 9.762 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000201/0.5307, allocations: 8.547 kB / 0.8263 GB, free: 9.754 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005179/0.5312, allocations: 372.2 kB / 0.8267 GB, free: 9.363 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.5314, allocations: 0.6846 MB / 0.8273 GB, free: 8.652 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.775e-05/0.5315, allocations: 11.44 kB / 0.8273 GB, free: 8.645 MB / 0.5919 GB Notification: Performance of SimCode: time 1.513e-06/0.5315, allocations: 0 / 0.8273 GB, free: 8.645 MB / 0.5919 GB Notification: Performance of Templates: time 0.001906/0.5334, allocations: 0.8356 MB / 0.8282 GB, free: 7.812 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (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 & ./BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)