Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.461/1.461, allocations: 251.5 MB / 267.4 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009713/0.0009714, allocations: 178.7 kB / 326.5 MB, free: 2.695 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205 MB / 0.5766 GB, free: 20.97 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007341/0.0007342, allocations: 92.7 kB / 0.6804 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003438, allocations: 8.812 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1919, allocations: 105.4 MB / 0.8967 GB, free: 68.18 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001159/0.1931, allocations: 1.006 MB / 0.8977 GB, free: 67.17 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.1328/0.3259, allocations: 144.7 MB / 1.039 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.97e-05/0.3259, allocations: 0 / 1.039 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 2.222e-05/0.326, allocations: 7.922 kB / 1.039 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 4.793e-05/0.326, allocations: 0 / 1.039 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.3264, allocations: 79.64 kB / 1.039 GB, free: 1.82 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 6.195e-05/0.3265, allocations: 39.84 kB / 1.039 GB, free: 1.781 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 3.252e-05/0.3265, allocations: 3.984 kB / 1.039 GB, free: 1.777 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 3.744e-05/0.3266, allocations: 15.94 kB / 1.039 GB, free: 1.762 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.484e-05/0.3266, allocations: 23.91 kB / 1.039 GB, free: 1.738 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 1.133e-05/0.3266, allocations: 0 / 1.039 GB, free: 1.738 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002538/0.3269, allocations: 75.83 kB / 1.039 GB, free: 1.664 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 1.376e-05/0.3269, allocations: 3.984 kB / 1.039 GB, free: 1.66 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 2.774e-05/0.327, allocations: 15.94 kB / 1.039 GB, free: 1.645 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.3271, allocations: 48.17 kB / 1.039 GB, free: 1.598 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3271, allocations: 3.938 kB / 1.039 GB, free: 1.594 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.774e-06/0.3271, allocations: 4 kB / 1.039 GB, free: 1.59 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.3271, allocations: 0 / 1.039 GB, free: 1.59 MB / 0.6823 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.000334/0.3274, allocations: 343.5 kB / 1.04 GB, free: 1.207 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.3275, allocations: 8.031 kB / 1.04 GB, free: 1.199 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.3277, allocations: 8.938 kB / 1.04 GB, free: 1.191 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.779e-05/0.3278, allocations: 160.4 kB / 1.04 GB, free: 0.9961 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.3278, allocations: 11.94 kB / 1.04 GB, free: 0.9844 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.494e-05/0.3278, allocations: 11.83 kB / 1.04 GB, free: 0.9727 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.328, allocations: 49.69 kB / 1.04 GB, free: 0.918 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.328, allocations: 0 / 1.04 GB, free: 0.918 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.328, allocations: 8 kB / 1.04 GB, free: 0.9102 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.328, allocations: 0 / 1.04 GB, free: 0.9102 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.456e-05/0.328, allocations: 15.92 kB / 1.04 GB, free: 0.8945 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.3282, allocations: 173.5 kB / 1.04 GB, free: 0.6758 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.81e-05/0.3283, allocations: 46.56 kB / 1.04 GB, free: 0.6211 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.775e-05/0.3283, allocations: 20.86 kB / 1.04 GB, free: 0.5977 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.3283, allocations: 240 / 1.04 GB, free: 0.5977 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.3284, allocations: 34.56 kB / 1.04 GB, free: 0.5547 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.3284, allocations: 0 / 1.04 GB, free: 0.5547 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0007077/0.3291, allocations: 370.1 kB / 1.041 GB, free: 144 kB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.3291, allocations: 51.41 kB / 1.041 GB, free: 80 kB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.945e-05/0.3292, allocations: 97.86 kB / 1.041 GB, free: 15.97 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.3292, allocations: 29.7 kB / 1.041 GB, free: 15.94 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.714e-05/0.3293, allocations: 80.14 kB / 1.041 GB, free: 15.86 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.551e-05/0.3293, allocations: 47.38 kB / 1.041 GB, free: 15.81 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/0.3294, allocations: 17.72 kB / 1.041 GB, free: 15.79 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.031e-05/0.3295, allocations: 322.7 kB / 1.041 GB, free: 15.46 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.53e-05/0.3295, allocations: 23.98 kB / 1.041 GB, free: 15.44 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.6e-05/0.3296, allocations: 37.83 kB / 1.041 GB, free: 15.39 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.215e-05/0.3296, allocations: 58.2 kB / 1.041 GB, free: 15.33 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.3296, allocations: 0 / 1.041 GB, free: 15.33 MB / 0.698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001297/0.3298, allocations: 93.66 kB / 1.041 GB, free: 15.23 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.3298, allocations: 7.938 kB / 1.041 GB, free: 15.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3298, allocations: 4 kB / 1.041 GB, free: 15.22 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.3298, allocations: 3.984 kB / 1.041 GB, free: 15.22 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.3299, allocations: 19.94 kB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.33, allocations: 4 kB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.294e-05/0.33, allocations: 4 kB / 1.041 GB, free: 15.19 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.33, allocations: 8 kB / 1.041 GB, free: 15.18 MB / 0.698 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.244e-05/0.3301, allocations: 117.8 kB / 1.042 GB, free: 15.06 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.643e-05/0.3301, allocations: 7.891 kB / 1.042 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.285e-05/0.3301, allocations: 11.97 kB / 1.042 GB, free: 15.04 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3302, allocations: 4 kB / 1.042 GB, free: 15.03 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3302, allocations: 0 / 1.042 GB, free: 15.03 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.3302, allocations: 0 / 1.042 GB, free: 15.03 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.3303, allocations: 173.6 kB / 1.042 GB, free: 14.81 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3303, allocations: 0 / 1.042 GB, free: 14.81 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.3304, allocations: 27.94 kB / 1.042 GB, free: 14.79 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.3304, allocations: 3.984 kB / 1.042 GB, free: 14.78 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.3305, allocations: 7.984 kB / 1.042 GB, free: 14.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3305, allocations: 0 / 1.042 GB, free: 14.77 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3305, allocations: 0 / 1.042 GB, free: 14.77 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001875/0.3307, allocations: 140.9 kB / 1.042 GB, free: 14.62 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.94e-05/0.3307, allocations: 81.14 kB / 1.042 GB, free: 14.52 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.3307, allocations: 8 kB / 1.042 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.748e-05/0.3308, allocations: 4 kB / 1.042 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.3309, allocations: 11.92 kB / 1.042 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.3309, allocations: 4 kB / 1.042 GB, free: 14.49 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.541e-05/0.3309, allocations: 79.28 kB / 1.042 GB, free: 14.41 MB / 0.698 GB Notification: Performance of sort global known variables: time 1e-07/0.3309, allocations: 0 / 1.042 GB, free: 14.41 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001778/0.3311, allocations: 15.94 kB / 1.042 GB, free: 14.4 MB / 0.698 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.382e-05/0.3312, allocations: 103.2 kB / 1.042 GB, free: 14.29 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001102/0.3313, allocations: 60.17 kB / 1.042 GB, free: 14.23 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3313, allocations: 4 kB / 1.042 GB, free: 14.22 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 3.927e-05/0.3314, allocations: 27.92 kB / 1.042 GB, free: 14.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001838/0.3316, allocations: 8 kB / 1.042 GB, free: 14.19 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005412/0.3321, allocations: 368.4 kB / 1.043 GB, free: 13.8 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.3323, allocations: 0.6887 MB / 1.043 GB, free: 13.08 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.994e-05/0.3324, allocations: 11.44 kB / 1.043 GB, free: 13.07 MB / 0.698 GB Notification: Performance of SimCode: time 2.4e-07/0.3324, allocations: 0 / 1.043 GB, free: 13.07 MB / 0.698 GB Notification: Performance of Templates: time 0.001902/0.3343, allocations: 0.8219 MB / 1.044 GB, free: 12.25 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)