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.0008431/0.0008431, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008748/0.0008751, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.163/1.163, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001616/0.001616, allocations: 258.8 kB / 291.3 MB, free: 1.988 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7255/0.7255, allocations: 144.6 MB / 487 MB, free: 7.188 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000378/0.0003781, allocations: 15 kB / 0.5683 GB, free: 38.35 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1316, allocations: 83.08 MB / 0.6494 GB, free: 3.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001053/0.1327, allocations: 0.9773 MB / 0.6504 GB, free: 2.602 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1199/0.2526, allocations: 124.3 MB / 0.7718 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.586e-05/0.2527, allocations: 0 / 0.7718 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.093e-05/0.2527, allocations: 3.984 kB / 0.7718 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.288e-05/0.2528, allocations: 7.984 kB / 0.7718 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.2531, allocations: 83.66 kB / 0.7718 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.731e-05/0.2532, allocations: 27.95 kB / 0.7719 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.828e-05/0.2532, allocations: 4 kB / 0.7719 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.657e-05/0.2533, allocations: 12 kB / 0.7719 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.659e-05/0.2533, allocations: 15.86 kB / 0.7719 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.2534, allocations: 4 kB / 0.7719 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002503/0.2536, allocations: 83.86 kB / 0.772 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.104e-05/0.2536, allocations: 0 / 0.772 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.38e-05/0.2537, allocations: 33.7 kB / 0.772 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.2538, allocations: 39.95 kB / 0.7721 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.2538, allocations: 3.938 kB / 0.7721 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.273e-06/0.2538, allocations: 4 kB / 0.7721 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.076e-06/0.2538, allocations: 4 kB / 0.7721 GB, free: 5.723 MB / 0.5606 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.0003155/0.2541, allocations: 343.5 kB / 0.7724 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.2542, allocations: 8.031 kB / 0.7724 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.2543, allocations: 8 kB / 0.7724 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.814e-05/0.2544, allocations: 178.8 kB / 0.7726 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.2545, allocations: 8 kB / 0.7726 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.2545, allocations: 4 kB / 0.7726 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.2546, allocations: 49.69 kB / 0.7726 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.2546, allocations: 0 / 0.7726 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.2546, allocations: 4 kB / 0.7726 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.2547, allocations: 0 / 0.7726 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.346e-05/0.2547, allocations: 15.98 kB / 0.7727 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001507/0.2549, allocations: 169.6 kB / 0.7728 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 6.931e-05/0.2549, allocations: 50.5 kB / 0.7729 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.255, allocations: 0 / 0.7729 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.255, allocations: 42.56 kB / 0.7729 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 7.92e-07/0.255, allocations: 0 / 0.7729 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0006236/0.2556, allocations: 370.3 kB / 0.7733 GB, free: 4.285 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.964e-05/0.2557, allocations: 59.34 kB / 0.7733 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.943e-05/0.2557, allocations: 97.84 kB / 0.7734 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.2557, allocations: 29.7 kB / 0.7734 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.402e-05/0.2558, allocations: 84.14 kB / 0.7735 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.215e-05/0.2558, allocations: 35.45 kB / 0.7736 GB, free: 3.953 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.2558, allocations: 4 kB / 0.7736 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.399e-05/0.2559, allocations: 314.8 kB / 0.7739 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.281e-05/0.2559, allocations: 19.98 kB / 0.7739 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.314e-05/0.256, allocations: 33.7 kB / 0.7739 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.961e-05/0.256, allocations: 24.67 kB / 0.7739 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.32e-07/0.256, allocations: 0 / 0.7739 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001162/0.2562, allocations: 105.5 kB / 0.774 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.2562, allocations: 8 kB / 0.774 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.2562, allocations: 0 / 0.774 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.2562, allocations: 0 / 0.774 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.2563, allocations: 23.98 kB / 0.7741 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.2563, allocations: 0 / 0.7741 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.745e-05/0.2564, allocations: 0 / 0.7741 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.2564, allocations: 12 kB / 0.7741 GB, free: 3.398 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.166e-05/0.2564, allocations: 125.7 kB / 0.7742 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.2565, allocations: 0 / 0.7742 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.029e-05/0.2565, allocations: 15.95 kB / 0.7742 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.2565, allocations: 0 / 0.7742 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2565, allocations: 0 / 0.7742 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.2565, allocations: 0 / 0.7742 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001072/0.2566, allocations: 173.6 kB / 0.7744 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2566, allocations: 0 / 0.7744 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.2567, allocations: 23.94 kB / 0.7744 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2568, allocations: 3.938 kB / 0.7744 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.2568, allocations: 8 kB / 0.7744 GB, free: 3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2568, allocations: 0 / 0.7744 GB, free: 3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2568, allocations: 3.984 kB / 0.7744 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.257, allocations: 132.9 kB / 0.7745 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.719e-05/0.257, allocations: 85.02 kB / 0.7746 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.257, allocations: 8.031 kB / 0.7746 GB, free: 2.738 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.519e-05/0.2571, allocations: 4 kB / 0.7746 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.796e-05/0.2571, allocations: 4 kB / 0.7746 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.435e-06/0.2572, allocations: 12.08 kB / 0.7746 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.158e-05/0.2572, allocations: 75.28 kB / 0.7747 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2572, allocations: 3.938 kB / 0.7747 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000181/0.2574, allocations: 16 kB / 0.7747 GB, free: 2.625 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.057e-05/0.2575, allocations: 103.2 kB / 0.7748 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001328/0.2576, allocations: 60.06 kB / 0.7749 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2576, allocations: 0 / 0.7749 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.64e-05/0.2577, allocations: 40.02 kB / 0.7749 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.2578, allocations: 5.875 kB / 0.7749 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004871/0.2583, allocations: 386.5 kB / 0.7753 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000202/0.2585, allocations: 0.6887 MB / 0.776 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.156e-05/0.2586, allocations: 12.66 kB / 0.776 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.844e-05/0.2586, allocations: 11.44 kB / 0.776 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of SimCode: time 2.2e-07/0.2586, allocations: 0 / 0.776 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of Templates: time 0.002098/0.2607, allocations: 0.5812 MB / 0.7766 GB, free: 0.6914 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: