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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7933/0.7933, allocations: 143.4 MB / 159.2 MB, free: 4.867 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 184.5 kB / 191.9 MB, free: 5.723 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 447.3 MB, free: 5.836 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001002, allocations: 107.7 kB / 0.517 GB, free: 3.699 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002853/0.002853, allocations: 282 kB / 0.5973 GB, free: 49.34 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 83.88 kB / 0.6885 GB, free: 3.801 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.313, allocations: 81.28 MB / 0.7679 GB, free: 27.64 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002039/0.3151, allocations: 1.343 MB / 0.7692 GB, free: 26.29 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.5145/0.8296, allocations: 144.7 MB / 0.9105 GB, free: 0.7734 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.38e-05/0.8297, allocations: 0 / 0.9105 GB, free: 0.7734 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 3.347e-05/0.8298, allocations: 2.906 kB / 0.9105 GB, free: 0.7734 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 5.877e-05/0.8298, allocations: 4.469 kB / 0.9105 GB, free: 0.7734 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005548/0.8304, allocations: 80.42 kB / 0.9106 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 9.05e-05/0.8305, allocations: 35.11 kB / 0.9106 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 4.254e-05/0.8306, allocations: 2.969 kB / 0.9106 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 5.212e-05/0.8306, allocations: 18.91 kB / 0.9107 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 6.486e-05/0.8307, allocations: 14.73 kB / 0.9107 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.8307, allocations: 1.938 kB / 0.9107 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003395/0.8311, allocations: 76.11 kB / 0.9107 GB, free: 0.7578 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 2.419e-05/0.8311, allocations: 8.922 kB / 0.9108 GB, free: 0.7578 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 3.781e-05/0.8312, allocations: 18.64 kB / 0.9108 GB, free: 0.7578 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002356/0.8314, allocations: 71.48 kB / 0.9108 GB, free: 0.75 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.8314, allocations: 0.9375 kB / 0.9108 GB, free: 0.75 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.233e-06/0.8314, allocations: 0 / 0.9108 GB, free: 0.75 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.8314, allocations: 0 / 0.9108 GB, free: 0.75 MB / 0.5573 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.0005196/0.832, allocations: 352.8 kB / 0.9112 GB, free: 16.39 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.832, allocations: 9.75 kB / 0.9112 GB, free: 16.39 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002795/0.8323, allocations: 14.89 kB / 0.9112 GB, free: 16.39 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.8325, allocations: 167.9 kB / 0.9114 GB, free: 16.19 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.8325, allocations: 9.375 kB / 0.9114 GB, free: 16.18 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.246e-05/0.8325, allocations: 7.812 kB / 0.9114 GB, free: 16.18 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000152/0.8327, allocations: 53.44 kB / 0.9114 GB, free: 16.15 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.8327, allocations: 0 / 0.9114 GB, free: 16.15 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.8327, allocations: 1.062 kB / 0.9114 GB, free: 16.15 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.8328, allocations: 1.188 kB / 0.9114 GB, free: 16.15 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.125e-05/0.8328, allocations: 17.75 kB / 0.9115 GB, free: 16.15 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002264/0.8331, allocations: 157.8 kB / 0.9116 GB, free: 15.96 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.8332, allocations: 66.14 kB / 0.9117 GB, free: 15.93 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.228e-05/0.8333, allocations: 17.84 kB / 0.9117 GB, free: 15.92 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.47e-05/0.8333, allocations: 0.9062 kB / 0.9117 GB, free: 15.92 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.8333, allocations: 36.59 kB / 0.9117 GB, free: 15.88 MB / 0.573 GB Notification: Performance of pre-optimization done (n=7): time 1.492e-06/0.8333, allocations: 0 / 0.9117 GB, free: 15.88 MB / 0.573 GB Notification: Performance of matching and sorting (n=11): time 0.0009725/0.8343, allocations: 374 kB / 0.9121 GB, free: 15.62 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.8344, allocations: 57.09 kB / 0.9121 GB, free: 15.56 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.807e-05/0.8345, allocations: 92.22 kB / 0.9122 GB, free: 15.46 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.8345, allocations: 27.11 kB / 0.9122 GB, free: 15.43 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 3.328e-05/0.8345, allocations: 83.08 kB / 0.9123 GB, free: 15.35 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 4.819e-05/0.8346, allocations: 36.55 kB / 0.9124 GB, free: 15.32 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.324e-05/0.8347, allocations: 27.14 kB / 0.9124 GB, free: 15.31 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.8348, allocations: 321.3 kB / 0.9127 GB, free: 14.99 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.883e-05/0.8349, allocations: 21.39 kB / 0.9127 GB, free: 14.99 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.382e-05/0.835, allocations: 39.22 kB / 0.9127 GB, free: 14.97 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.8351, allocations: 65.38 kB / 0.9128 GB, free: 14.96 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.8351, allocations: 0 / 0.9128 GB, free: 14.96 MB / 0.573 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002253/0.8353, allocations: 102.9 kB / 0.9129 GB, free: 14.92 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.8354, allocations: 3.625 kB / 0.9129 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.8354, allocations: 1.75 kB / 0.9129 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.8354, allocations: 0.8438 kB / 0.9129 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.8356, allocations: 23.42 kB / 0.9129 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.8356, allocations: 7.5 kB / 0.9129 GB, free: 14.91 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.099e-05/0.8357, allocations: 8.594 kB / 0.913 GB, free: 14.91 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.8357, allocations: 2.781 kB / 0.913 GB, free: 14.91 MB / 0.573 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 0.0001144/0.8358, allocations: 118.8 kB / 0.9131 GB, free: 14.79 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.445e-05/0.8358, allocations: 4.625 kB / 0.9131 GB, free: 14.79 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.611e-05/0.8359, allocations: 11.16 kB / 0.9131 GB, free: 14.79 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.8359, allocations: 2.031 kB / 0.9131 GB, free: 14.79 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.8359, allocations: 2.906 kB / 0.9131 GB, free: 14.79 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.8359, allocations: 5.953 kB / 0.9131 GB, free: 14.79 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.8361, allocations: 173.3 kB / 0.9133 GB, free: 14.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.8361, allocations: 1.031 kB / 0.9133 GB, free: 14.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.8363, allocations: 20.28 kB / 0.9133 GB, free: 14.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.8363, allocations: 2.031 kB / 0.9133 GB, free: 14.6 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.8364, allocations: 8.422 kB / 0.9133 GB, free: 14.59 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.8364, allocations: 0.9688 kB / 0.9133 GB, free: 14.59 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.8364, allocations: 0 / 0.9133 GB, free: 14.59 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.8381, allocations: 1.104 MB / 0.9144 GB, free: 13.66 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 8.383e-05/0.8382, allocations: 83.64 kB / 0.9144 GB, free: 13.57 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.8382, allocations: 1.5 kB / 0.9144 GB, free: 13.57 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.8383, allocations: 15.84 kB / 0.9145 GB, free: 13.56 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.658e-05/0.8383, allocations: 5.172 kB / 0.9145 GB, free: 13.56 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.8384, allocations: 3.219 kB / 0.9145 GB, free: 13.56 MB / 0.573 GB Notification: Performance of sorting global known variables: time 4.23e-05/0.8384, allocations: 79.66 kB / 0.9145 GB, free: 13.49 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8384, allocations: 0 / 0.9145 GB, free: 13.49 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.000498/0.8389, allocations: 18.97 kB / 0.9146 GB, free: 13.49 MB / 0.573 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.0001641/0.8391, allocations: 102.7 kB / 0.9147 GB, free: 13.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0002124/0.8393, allocations: 61.7 kB / 0.9147 GB, free: 13.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.8393, allocations: 4 kB / 0.9147 GB, free: 13.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 7.056e-05/0.8394, allocations: 28.09 kB / 0.9148 GB, free: 13.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003465/0.8398, allocations: 10.03 kB / 0.9148 GB, free: 13.4 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.8408, allocations: 467.9 kB / 0.9152 GB, free: 13.02 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.8412, allocations: 0.6906 MB / 0.9159 GB, free: 12.32 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001242/0.8413, allocations: 10.77 kB / 0.9159 GB, free: 12.32 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.093e-05/0.8414, allocations: 12.44 kB / 0.9159 GB, free: 12.31 MB / 0.573 GB Notification: Performance of SimCode: time 4.4e-07/0.8414, allocations: 4 kB / 0.9159 GB, free: 12.31 MB / 0.573 GB Notification: Performance of Templates: time 0.004095/0.8455, allocations: 0.6697 MB / 0.9166 GB, free: 12.24 MB / 0.573 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)