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.0009953/0.0009949, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001054/0.001053, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.352/1.352, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002046/0.002046, allocations: 278.2 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9507/0.9507, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 93.28 kB / 0.5947 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1692, allocations: 86.99 MB / 0.6796 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002752/0.172, allocations: 1.328 MB / 0.6809 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4588/0.6308, allocations: 144.8 MB / 0.8224 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.193e-05/0.6309, allocations: 0 / 0.8224 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.482e-05/0.631, allocations: 6.562 kB / 0.8224 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.004e-05/0.6311, allocations: 7.359 kB / 0.8224 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004168/0.6315, allocations: 76.53 kB / 0.8225 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.846e-05/0.6316, allocations: 42.02 kB / 0.8225 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.755e-05/0.6316, allocations: 2.188 kB / 0.8225 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.788e-05/0.6317, allocations: 16.84 kB / 0.8225 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.74e-05/0.6318, allocations: 11.77 kB / 0.8225 GB, free: 0.8867 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.6318, allocations: 2.219 kB / 0.8225 GB, free: 0.8867 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002592/0.632, allocations: 81.14 kB / 0.8226 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.391e-05/0.6321, allocations: 4.656 kB / 0.8226 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.301e-05/0.6321, allocations: 16.22 kB / 0.8226 GB, free: 0.8711 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001706/0.6323, allocations: 69.06 kB / 0.8227 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.6323, allocations: 0 / 0.8227 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6323, allocations: 4 kB / 0.8227 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.6323, allocations: 0.5938 kB / 0.8227 GB, free: 0.8594 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.0004364/0.6328, allocations: 355.9 kB / 0.823 GB, free: 16.5 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.6328, allocations: 9.094 kB / 0.823 GB, free: 16.5 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001913/0.633, allocations: 12 kB / 0.8231 GB, free: 16.5 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.6331, allocations: 173.5 kB / 0.8232 GB, free: 16.29 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.6331, allocations: 6.094 kB / 0.8232 GB, free: 16.29 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.6332, allocations: 10.59 kB / 0.8232 GB, free: 16.28 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.6333, allocations: 54.61 kB / 0.8233 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.6333, allocations: 0.6562 kB / 0.8233 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.6333, allocations: 2.094 kB / 0.8233 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.6333, allocations: 1.062 kB / 0.8233 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.293e-05/0.6334, allocations: 19.77 kB / 0.8233 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001591/0.6336, allocations: 161.2 kB / 0.8235 GB, free: 16.06 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 8.285e-05/0.6337, allocations: 55.22 kB / 0.8235 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.945e-05/0.6337, allocations: 21.81 kB / 0.8235 GB, free: 16.02 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.6337, allocations: 0.5938 kB / 0.8235 GB, free: 16.02 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.6338, allocations: 32.28 kB / 0.8236 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.6338, allocations: 0 / 0.8236 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0007736/0.6345, allocations: 375.5 kB / 0.8239 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.6346, allocations: 52.66 kB / 0.824 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.661e-05/0.6347, allocations: 103.3 kB / 0.8241 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.6347, allocations: 26.89 kB / 0.8241 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.338e-05/0.6348, allocations: 80.83 kB / 0.8242 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.813e-05/0.6348, allocations: 45.31 kB / 0.8242 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.354e-05/0.6349, allocations: 28 kB / 0.8242 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.635, allocations: 319.3 kB / 0.8246 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.909e-05/0.635, allocations: 20.73 kB / 0.8246 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.357e-05/0.6351, allocations: 40.95 kB / 0.8246 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.581e-05/0.6352, allocations: 55.78 kB / 0.8247 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.6352, allocations: 0.5312 kB / 0.8247 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001628/0.6354, allocations: 107.7 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.6354, allocations: 7.188 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.6354, allocations: 0.5625 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.6354, allocations: 1.156 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.6355, allocations: 20.73 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.6356, allocations: 5.406 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.078e-05/0.6356, allocations: 4.75 kB / 0.8248 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.6356, allocations: 6.281 kB / 0.8248 GB, free: 14.98 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.972e-05/0.6357, allocations: 120.1 kB / 0.8249 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.6357, allocations: 2.656 kB / 0.8249 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.703e-05/0.6358, allocations: 11.38 kB / 0.8249 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.6358, allocations: 1.562 kB / 0.8249 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.6358, allocations: 0.6875 kB / 0.8249 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.6358, allocations: 2.766 kB / 0.8249 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.6359, allocations: 174.6 kB / 0.8251 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.6359, allocations: 1.188 kB / 0.8251 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.6361, allocations: 20.86 kB / 0.8251 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.6361, allocations: 7.203 kB / 0.8251 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.6361, allocations: 4.531 kB / 0.8251 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.6361, allocations: 1.812 kB / 0.8251 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.6361, allocations: 0 / 0.8251 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.6363, allocations: 136.9 kB / 0.8253 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.771e-05/0.6364, allocations: 86.98 kB / 0.8254 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.547e-05/0.6364, allocations: 1.156 kB / 0.8254 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.559e-05/0.6365, allocations: 5.938 kB / 0.8254 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.227e-05/0.6366, allocations: 6.031 kB / 0.8254 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.6366, allocations: 2.812 kB / 0.8254 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.207e-05/0.6366, allocations: 78.64 kB / 0.8254 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6366, allocations: 0 / 0.8254 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002117/0.6369, allocations: 19.44 kB / 0.8255 GB, free: 14.42 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.000129/0.637, allocations: 109 kB / 0.8256 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001639/0.6372, allocations: 65.44 kB / 0.8256 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.6372, allocations: 0 / 0.8256 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 3.989e-05/0.6372, allocations: 24.95 kB / 0.8257 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.6374, allocations: 8.906 kB / 0.8257 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005723/0.638, allocations: 343.6 kB / 0.826 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.6383, allocations: 0.6923 MB / 0.8267 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.771e-05/0.6384, allocations: 11.75 kB / 0.8267 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.876e-05/0.6384, allocations: 15.97 kB / 0.8267 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/0.6384, allocations: 0 / 0.8267 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of Templates: time 0.003236/0.6417, allocations: 0.6327 MB / 0.8273 GB, free: 13.27 MB / 0.5762 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)