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.006912/0.006912, allocations: 96.28 kB / 15.73 MB, free: 5.996 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.001739/0.001739, allocations: 185.8 kB / 16.67 MB, free: 5.926 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002138/0.002138, allocations: 283 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.005/1.005, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 87.86 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.175/0.1767, allocations: 86.97 MB / 0.7664 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002232/0.179, allocations: 1.282 MB / 0.7676 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.5123/0.6913, allocations: 147 MB / 0.9112 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.334e-05/0.6914, allocations: 4 kB / 0.9112 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 2.987e-05/0.6914, allocations: 3.984 kB / 0.9112 GB, free: 14.61 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 5.534e-05/0.6915, allocations: 3.938 kB / 0.9112 GB, free: 14.61 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005185/0.692, allocations: 92.44 kB / 0.9113 GB, free: 14.52 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 9.011e-05/0.6921, allocations: 27.92 kB / 0.9113 GB, free: 14.49 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.88e-05/0.6922, allocations: 0 / 0.9113 GB, free: 14.49 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 5.502e-05/0.6922, allocations: 27.84 kB / 0.9113 GB, free: 14.46 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 6.653e-05/0.6923, allocations: 15.98 kB / 0.9113 GB, free: 14.45 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.6923, allocations: 0 / 0.9113 GB, free: 14.45 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003069/0.6926, allocations: 79.83 kB / 0.9114 GB, free: 14.37 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 2.946e-05/0.6927, allocations: 11.92 kB / 0.9114 GB, free: 14.36 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.243e-05/0.6927, allocations: 17.77 kB / 0.9114 GB, free: 14.34 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0001783/0.6929, allocations: 63.19 kB / 0.9115 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.6929, allocations: 4 kB / 0.9115 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.512e-06/0.6929, allocations: 0 / 0.9115 GB, free: 14.29 MB / 0.67 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.6929, allocations: 0 / 0.9115 GB, free: 14.29 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.0004158/0.6934, allocations: 353.7 kB / 0.9118 GB, free: 13.89 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.6934, allocations: 12.03 kB / 0.9118 GB, free: 13.88 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.6936, allocations: 12.92 kB / 0.9119 GB, free: 13.87 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.6937, allocations: 164.6 kB / 0.912 GB, free: 13.67 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.6938, allocations: 7.938 kB / 0.912 GB, free: 13.66 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.6938, allocations: 4 kB / 0.912 GB, free: 13.66 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.6939, allocations: 53.61 kB / 0.9121 GB, free: 13.6 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.6939, allocations: 0 / 0.9121 GB, free: 13.6 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.694, allocations: 4 kB / 0.9121 GB, free: 13.6 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.694, allocations: 0 / 0.9121 GB, free: 13.6 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.994e-05/0.694, allocations: 15.98 kB / 0.9121 GB, free: 13.58 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001756/0.6942, allocations: 169.6 kB / 0.9123 GB, free: 13.37 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 8.578e-05/0.6943, allocations: 50.48 kB / 0.9123 GB, free: 13.31 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.337e-05/0.6943, allocations: 22.2 kB / 0.9123 GB, free: 13.29 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.6944, allocations: 0 / 0.9123 GB, free: 13.29 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.6944, allocations: 38.8 kB / 0.9124 GB, free: 13.24 MB / 0.67 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.6944, allocations: 0 / 0.9124 GB, free: 13.24 MB / 0.67 GB Notification: Performance of matching and sorting (n=11): time 0.0007576/0.6952, allocations: 380.5 kB / 0.9127 GB, free: 12.82 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.445e-05/0.6952, allocations: 51.41 kB / 0.9128 GB, free: 12.75 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.517e-05/0.6953, allocations: 89.86 kB / 0.9129 GB, free: 12.66 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.6953, allocations: 33.7 kB / 0.9129 GB, free: 12.62 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 2.527e-05/0.6953, allocations: 80.14 kB / 0.913 GB, free: 12.54 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 4.358e-05/0.6954, allocations: 39.75 kB / 0.913 GB, free: 12.5 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.851e-05/0.6954, allocations: 29.72 kB / 0.913 GB, free: 12.46 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.65e-05/0.6955, allocations: 326.8 kB / 0.9133 GB, free: 12.13 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.633e-05/0.6956, allocations: 16 kB / 0.9134 GB, free: 12.12 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.956e-05/0.6956, allocations: 45.62 kB / 0.9134 GB, free: 12.07 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.466e-05/0.6957, allocations: 54.41 kB / 0.9135 GB, free: 12.01 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.6957, allocations: 7.938 kB / 0.9135 GB, free: 12 MB / 0.67 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001264/0.6959, allocations: 95.12 kB / 0.9136 GB, free: 11.9 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.6959, allocations: 14.34 kB / 0.9136 GB, free: 11.89 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.6959, allocations: 0 / 0.9136 GB, free: 11.89 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.6959, allocations: 0 / 0.9136 GB, free: 11.89 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.6961, allocations: 27.98 kB / 0.9136 GB, free: 11.86 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.6961, allocations: 0 / 0.9136 GB, free: 11.86 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.186e-05/0.6961, allocations: 0.5625 kB / 0.9136 GB, free: 11.86 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.6961, allocations: 4 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.504e-05/0.6962, allocations: 122.4 kB / 0.9137 GB, free: 11.73 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.826e-05/0.6962, allocations: 7.953 kB / 0.9137 GB, free: 11.72 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.795e-05/0.6963, allocations: 19.95 kB / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.6963, allocations: 0 / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.6963, allocations: 0 / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.6963, allocations: 1.625 kB / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001266/0.6964, allocations: 173.6 kB / 0.9139 GB, free: 11.49 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.6964, allocations: 0 / 0.9139 GB, free: 11.49 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.6966, allocations: 16 kB / 0.9139 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.6966, allocations: 4 kB / 0.9139 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.6966, allocations: 4 kB / 0.9139 GB, free: 11.46 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.6966, allocations: 3.984 kB / 0.9139 GB, free: 11.46 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.6966, allocations: 4 kB / 0.9139 GB, free: 11.46 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001952/0.6968, allocations: 136.4 kB / 0.9141 GB, free: 11.31 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 6.536e-05/0.6969, allocations: 93.19 kB / 0.9142 GB, free: 11.2 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.6969, allocations: 0 / 0.9142 GB, free: 11.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.371e-05/0.697, allocations: 10.05 kB / 0.9142 GB, free: 11.19 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.777e-05/0.697, allocations: 3.984 kB / 0.9142 GB, free: 11.19 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.697, allocations: 8 kB / 0.9142 GB, free: 11.18 MB / 0.67 GB Notification: Performance of sorting global known variables: time 2.876e-05/0.6971, allocations: 79.28 kB / 0.9143 GB, free: 11.1 MB / 0.67 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6971, allocations: 0 / 0.9143 GB, free: 11.1 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0001956/0.6973, allocations: 20 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 9.885e-05/0.6974, allocations: 99.19 kB / 0.9144 GB, free: 10.97 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0001351/0.6975, allocations: 59.86 kB / 0.9144 GB, free: 10.91 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.6975, allocations: 0 / 0.9144 GB, free: 10.91 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 3.809e-05/0.6976, allocations: 31.92 kB / 0.9145 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.0002289/0.6978, allocations: 9.109 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.00054/0.6984, allocations: 324.4 kB / 0.9148 GB, free: 10.54 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.6986, allocations: 0.6885 MB / 0.9154 GB, free: 9.824 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 5.517e-05/0.6987, allocations: 8.672 kB / 0.9155 GB, free: 9.816 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.977e-05/0.6987, allocations: 11.44 kB / 0.9155 GB, free: 9.805 MB / 0.67 GB Notification: Performance of SimCode: time 4.11e-07/0.6987, allocations: 3.938 kB / 0.9155 GB, free: 9.801 MB / 0.67 GB Notification: Performance of Templates: time 0.002787/0.7015, allocations: 0.6514 MB / 0.9161 GB, free: 9.164 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)