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.005817/0.005817, allocations: 101.4 kB / 15.73 MB, free: 6.035 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.001158/0.001158, allocations: 191.7 kB / 16.67 MB, free: 5.973 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00204/0.00204, allocations: 283.1 kB / 290.8 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.973/0.973, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 99.8 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.155, allocations: 86.97 MB / 0.7664 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002018/0.1571, allocations: 1.274 MB / 0.7676 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.519/0.6761, allocations: 147 MB / 0.9112 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.485e-05/0.6762, allocations: 4 kB / 0.9112 GB, free: 14.61 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 2.806e-05/0.6763, allocations: 3.984 kB / 0.9112 GB, free: 14.61 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 6.97e-05/0.6763, allocations: 7.922 kB / 0.9112 GB, free: 14.6 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006075/0.677, allocations: 93.94 kB / 0.9113 GB, free: 14.52 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.6771, allocations: 29.8 kB / 0.9113 GB, free: 14.49 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 5.16e-05/0.6771, allocations: 4 kB / 0.9113 GB, free: 14.48 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 6.262e-05/0.6772, allocations: 23.86 kB / 0.9113 GB, free: 14.46 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 7.968e-05/0.6773, allocations: 15.97 kB / 0.9113 GB, free: 14.45 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.6773, allocations: 0 / 0.9113 GB, free: 14.45 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003354/0.6777, allocations: 78.83 kB / 0.9114 GB, free: 14.37 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 1.994e-05/0.6777, allocations: 11.92 kB / 0.9114 GB, free: 14.36 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.285e-05/0.6777, allocations: 12 kB / 0.9114 GB, free: 14.35 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0002015/0.6779, allocations: 67.53 kB / 0.9115 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.678, allocations: 0 / 0.9115 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.254e-06/0.678, allocations: 0 / 0.9115 GB, free: 14.29 MB / 0.67 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.678, allocations: 4 kB / 0.9115 GB, free: 14.28 MB / 0.67 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.0004984/0.6785, allocations: 354.7 kB / 0.9118 GB, free: 13.89 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.6785, allocations: 12.03 kB / 0.9118 GB, free: 13.88 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002422/0.6788, allocations: 12.92 kB / 0.9119 GB, free: 13.87 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.6789, allocations: 168.5 kB / 0.912 GB, free: 13.66 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.6789, allocations: 3.938 kB / 0.912 GB, free: 13.66 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.679, allocations: 8 kB / 0.912 GB, free: 13.65 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.6791, allocations: 53.61 kB / 0.9121 GB, free: 13.59 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.6792, allocations: 3.938 kB / 0.9121 GB, free: 13.59 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.6792, allocations: 0 / 0.9121 GB, free: 13.59 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.6792, allocations: 0 / 0.9121 GB, free: 13.59 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.509e-05/0.6793, allocations: 19.98 kB / 0.9121 GB, free: 13.57 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002101/0.6795, allocations: 165.7 kB / 0.9123 GB, free: 13.36 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.6796, allocations: 54.48 kB / 0.9123 GB, free: 13.3 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.138e-05/0.6796, allocations: 12.8 kB / 0.9123 GB, free: 13.28 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.6797, allocations: 4 kB / 0.9123 GB, free: 13.28 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.6797, allocations: 34.56 kB / 0.9124 GB, free: 13.23 MB / 0.67 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.6797, allocations: 0 / 0.9124 GB, free: 13.23 MB / 0.67 GB Notification: Performance of matching and sorting (n=11): time 0.0008136/0.6805, allocations: 382.2 kB / 0.9127 GB, free: 12.81 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.6806, allocations: 51.41 kB / 0.9128 GB, free: 12.75 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.012e-05/0.6807, allocations: 93.86 kB / 0.9129 GB, free: 12.64 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.6807, allocations: 29.7 kB / 0.9129 GB, free: 12.61 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 2.7e-05/0.6807, allocations: 80.14 kB / 0.913 GB, free: 12.53 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 3.993e-05/0.6808, allocations: 35.58 kB / 0.913 GB, free: 12.49 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.15e-05/0.6808, allocations: 37.62 kB / 0.913 GB, free: 12.45 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.6809, allocations: 322.8 kB / 0.9133 GB, free: 12.12 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.415e-05/0.681, allocations: 16 kB / 0.9134 GB, free: 12.11 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.503e-05/0.681, allocations: 38.89 kB / 0.9134 GB, free: 12.07 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.937e-05/0.6811, allocations: 64.5 kB / 0.9135 GB, free: 12 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.71e-07/0.6811, allocations: 0 / 0.9135 GB, free: 12 MB / 0.67 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001309/0.6812, allocations: 89.62 kB / 0.9135 GB, free: 11.91 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.6813, allocations: 8 kB / 0.9136 GB, free: 11.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.6813, allocations: 0 / 0.9136 GB, free: 11.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.6813, allocations: 4 kB / 0.9136 GB, free: 11.89 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.6814, allocations: 23.98 kB / 0.9136 GB, free: 11.87 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.6814, allocations: 4 kB / 0.9136 GB, free: 11.87 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.297e-05/0.6815, allocations: 0 / 0.9136 GB, free: 11.87 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.6815, allocations: 4.688 kB / 0.9136 GB, free: 11.86 MB / 0.67 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 8.106e-05/0.6816, allocations: 118.4 kB / 0.9137 GB, free: 11.74 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.6816, allocations: 7.906 kB / 0.9137 GB, free: 11.73 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.195e-05/0.6816, allocations: 19.95 kB / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.6816, allocations: 4 kB / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.6817, allocations: 0 / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.6817, allocations: 0 / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001216/0.6818, allocations: 173.6 kB / 0.9139 GB, free: 11.49 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.6818, allocations: 7.484 kB / 0.9139 GB, free: 11.49 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001233/0.6819, allocations: 20 kB / 0.9139 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.6819, allocations: 0 / 0.9139 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.682, allocations: 4 kB / 0.9139 GB, free: 11.46 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.682, allocations: 8.531 kB / 0.9139 GB, free: 11.46 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.682, allocations: 11.88 kB / 0.9139 GB, free: 11.45 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000184/0.6822, allocations: 125 kB / 0.9141 GB, free: 11.3 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 7.767e-05/0.6822, allocations: 93.05 kB / 0.9142 GB, free: 11.2 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.6823, allocations: 0 / 0.9142 GB, free: 11.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.059e-05/0.6824, allocations: 4 kB / 0.9142 GB, free: 11.19 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.466e-05/0.6824, allocations: 11.98 kB / 0.9142 GB, free: 11.18 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.6824, allocations: 4 kB / 0.9142 GB, free: 11.18 MB / 0.67 GB Notification: Performance of sorting global known variables: time 2.973e-05/0.6824, allocations: 79.28 kB / 0.9143 GB, free: 11.1 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6824, allocations: 0 / 0.9143 GB, free: 11.1 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0002065/0.6827, allocations: 16 kB / 0.9143 GB, free: 11.08 MB / 0.67 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.0001169/0.6828, allocations: 99.19 kB / 0.9144 GB, free: 10.97 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0001512/0.6829, allocations: 60.88 kB / 0.9144 GB, free: 10.91 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.6829, allocations: 0 / 0.9144 GB, free: 10.91 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 3.958e-05/0.683, allocations: 31.92 kB / 0.9144 GB, free: 10.88 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.6833, allocations: 12.31 kB / 0.9145 GB, free: 10.88 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006224/0.6839, allocations: 323.2 kB / 0.9148 GB, free: 10.54 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.6842, allocations: 0.6923 MB / 0.9154 GB, free: 9.82 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 6.447e-05/0.6843, allocations: 8.672 kB / 0.9155 GB, free: 9.812 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.053e-05/0.6843, allocations: 11.44 kB / 0.9155 GB, free: 9.801 MB / 0.67 GB Notification: Performance of SimCode: time 3.81e-07/0.6843, allocations: 0 / 0.9155 GB, free: 9.801 MB / 0.67 GB Notification: Performance of Templates: time 0.002794/0.6871, allocations: 0.6499 MB / 0.9161 GB, free: 9.168 MB / 0.67 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)