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.001419/0.001419, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001386/0.001386, allocations: 195.5 kB / 16.14 MB, free: 6.641 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.442/1.442, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002481/0.002481, allocations: 283 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.09/1.09, allocations: 178.6 MB / 0.5068 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002809/0.002809, allocations: 99.7 kB / 0.6057 GB, free: 25.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.1827, allocations: 89.15 MB / 0.6928 GB, free: 4.84 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002609/0.1853, allocations: 1.341 MB / 0.6941 GB, free: 3.496 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4906/0.676, allocations: 144.7 MB / 0.8354 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.013e-05/0.676, allocations: 0 / 0.8354 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 3.563e-05/0.6761, allocations: 3.984 kB / 0.8354 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 6.229e-05/0.6762, allocations: 12.86 kB / 0.8354 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004131/0.6766, allocations: 78.14 kB / 0.8355 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.598e-05/0.6767, allocations: 31.39 kB / 0.8355 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 5.097e-05/0.6768, allocations: 6.422 kB / 0.8355 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.084e-05/0.6768, allocations: 16.23 kB / 0.8355 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.972e-05/0.6769, allocations: 17.05 kB / 0.8355 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.6769, allocations: 2.156 kB / 0.8355 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002918/0.6772, allocations: 84.75 kB / 0.8356 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.475e-05/0.6772, allocations: 6.344 kB / 0.8356 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.754e-05/0.6773, allocations: 14.47 kB / 0.8356 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001915/0.6775, allocations: 70.55 kB / 0.8357 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.6775, allocations: 0 / 0.8357 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.032e-06/0.6775, allocations: 0 / 0.8357 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.6775, allocations: 0.9375 kB / 0.8357 GB, free: 15.18 MB / 0.5762 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.0004878/0.678, allocations: 347.7 kB / 0.836 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.6781, allocations: 13.02 kB / 0.8361 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.6783, allocations: 17.16 kB / 0.8361 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.6784, allocations: 163.1 kB / 0.8362 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.6784, allocations: 5.156 kB / 0.8362 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.6785, allocations: 11.7 kB / 0.8362 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001472/0.6786, allocations: 49.19 kB / 0.8363 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.6786, allocations: 0 / 0.8363 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.6786, allocations: 5.094 kB / 0.8363 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.6787, allocations: 1.031 kB / 0.8363 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.229e-05/0.6787, allocations: 12.86 kB / 0.8363 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002056/0.6789, allocations: 177.2 kB / 0.8365 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 9.539e-05/0.679, allocations: 51.53 kB / 0.8365 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.17e-05/0.6791, allocations: 15.83 kB / 0.8365 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.6791, allocations: 0 / 0.8365 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/0.6791, allocations: 36.62 kB / 0.8366 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 8.61e-07/0.6791, allocations: 0 / 0.8366 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0008003/0.6799, allocations: 374.7 kB / 0.8369 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.68, allocations: 52.59 kB / 0.837 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.641e-05/0.6801, allocations: 92.17 kB / 0.8371 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.6801, allocations: 30.98 kB / 0.8371 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.472e-05/0.6801, allocations: 80.14 kB / 0.8372 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.6802, allocations: 35.98 kB / 0.8372 GB, free: 13.6 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-05/0.6802, allocations: 26.22 kB / 0.8372 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.6804, allocations: 333.2 kB / 0.8376 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.06e-05/0.6804, allocations: 18.02 kB / 0.8376 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.535e-05/0.6805, allocations: 36.55 kB / 0.8376 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.983e-05/0.6806, allocations: 61.75 kB / 0.8377 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.6806, allocations: 0 / 0.8377 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001524/0.6808, allocations: 99.05 kB / 0.8378 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.6808, allocations: 10.53 kB / 0.8378 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.6808, allocations: 7.984 kB / 0.8378 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.6808, allocations: 1.25 kB / 0.8378 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.681, allocations: 21.89 kB / 0.8378 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.681, allocations: 1.094 kB / 0.8378 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.976e-05/0.681, allocations: 1.219 kB / 0.8378 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.681, allocations: 7.344 kB / 0.8378 GB, free: 13.09 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 0.0001132/0.6812, allocations: 124.9 kB / 0.8379 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.527e-05/0.6812, allocations: 2.406 kB / 0.8379 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.537e-05/0.6812, allocations: 9.281 kB / 0.8379 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.6812, allocations: 5.375 kB / 0.8379 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.6812, allocations: 0 / 0.8379 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.6812, allocations: 1.312 kB / 0.838 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.6814, allocations: 175.6 kB / 0.8381 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.6814, allocations: 0 / 0.8381 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.6815, allocations: 23.41 kB / 0.8381 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.6816, allocations: 5.297 kB / 0.8381 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.6816, allocations: 1.031 kB / 0.8381 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.6816, allocations: 0 / 0.8381 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6816, allocations: 1.188 kB / 0.8381 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002365/0.6818, allocations: 147 kB / 0.8383 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.382e-05/0.6819, allocations: 88.64 kB / 0.8384 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.6819, allocations: 1.125 kB / 0.8384 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.877e-05/0.682, allocations: 6.656 kB / 0.8384 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.505e-05/0.6821, allocations: 6.859 kB / 0.8384 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.6821, allocations: 2.375 kB / 0.8384 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.99e-05/0.6821, allocations: 76.5 kB / 0.8385 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6821, allocations: 4.094 kB / 0.8385 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002/0.6823, allocations: 16.97 kB / 0.8385 GB, free: 12.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.0001277/0.6825, allocations: 104.6 kB / 0.8386 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001448/0.6826, allocations: 56.86 kB / 0.8386 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.6826, allocations: 0 / 0.8386 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 4.761e-05/0.6827, allocations: 30.97 kB / 0.8387 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/0.6829, allocations: 9.297 kB / 0.8387 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006171/0.6836, allocations: 335 kB / 0.839 GB, free: 12 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.6839, allocations: 0.6889 MB / 0.8397 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.03e-05/0.684, allocations: 11.94 kB / 0.8397 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.785e-05/0.684, allocations: 15.78 kB / 0.8397 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of SimCode: time 3.31e-07/0.684, allocations: 1 kB / 0.8397 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of Templates: time 0.002961/0.687, allocations: 0.6203 MB / 0.8403 GB, free: 10.97 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)