Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: "" <> buildModelFMU(IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 109.5 kB / 16.27 MB, free: 5.93 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.001075/0.001074, allocations: 189 kB / 17.2 MB, free: 5.574 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.264/1.264, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7317/0.7317, allocations: 122.9 MB / 413.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.91 kB / 0.4912 GB, free: 7.32 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2909, allocations: 77.92 MB / 0.5673 GB, free: 32.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002037/0.293, allocations: 1.259 MB / 0.5685 GB, free: 31.7 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1417/0.4348, allocations: 147 MB / 0.7121 GB, free: 6.043 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.856e-05/0.4348, allocations: 0 / 0.7121 GB, free: 6.043 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.343e-05/0.4349, allocations: 3.984 kB / 0.7121 GB, free: 6.039 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.64e-05/0.435, allocations: 7.938 kB / 0.7121 GB, free: 6.031 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003822/0.4354, allocations: 87.56 kB / 0.7122 GB, free: 5.945 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.537e-05/0.4355, allocations: 39.84 kB / 0.7122 GB, free: 5.906 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.295e-05/0.4355, allocations: 11.98 kB / 0.7122 GB, free: 5.895 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.706e-05/0.4355, allocations: 15.94 kB / 0.7122 GB, free: 5.879 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.294e-05/0.4356, allocations: 15.97 kB / 0.7122 GB, free: 5.863 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.4356, allocations: 4 kB / 0.7123 GB, free: 5.859 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002361/0.4359, allocations: 63.84 kB / 0.7123 GB, free: 5.797 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.967e-05/0.4359, allocations: 19.91 kB / 0.7123 GB, free: 5.777 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.701e-05/0.4359, allocations: 19.94 kB / 0.7124 GB, free: 5.758 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.4361, allocations: 62.19 kB / 0.7124 GB, free: 5.699 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.4361, allocations: 0 / 0.7124 GB, free: 5.699 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4361, allocations: 0 / 0.7124 GB, free: 5.699 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.4361, allocations: 0 / 0.7124 GB, free: 5.699 MB / 0.545 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.0003565/0.4365, allocations: 355.4 kB / 0.7127 GB, free: 5.305 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.4365, allocations: 12.62 kB / 0.7128 GB, free: 5.293 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.991e-05/0.4366, allocations: 34.73 kB / 0.7128 GB, free: 5.25 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.4367, allocations: 8.938 kB / 0.7128 GB, free: 5.242 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.544e-05/0.4368, allocations: 172.1 kB / 0.713 GB, free: 5.035 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.4369, allocations: 8 kB / 0.713 GB, free: 5.027 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.4369, allocations: 4 kB / 0.713 GB, free: 5.023 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.437, allocations: 49.67 kB / 0.713 GB, free: 4.969 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.437, allocations: 8 kB / 0.713 GB, free: 4.961 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.437, allocations: 0 / 0.713 GB, free: 4.961 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.437, allocations: 0 / 0.713 GB, free: 4.961 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.68e-05/0.4371, allocations: 19.97 kB / 0.7131 GB, free: 4.941 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.4372, allocations: 177.4 kB / 0.7132 GB, free: 4.719 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 8.124e-05/0.4373, allocations: 50.5 kB / 0.7133 GB, free: 4.66 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.749e-05/0.4374, allocations: 16.86 kB / 0.7133 GB, free: 4.641 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 8.636e-06/0.4374, allocations: 4 kB / 0.7133 GB, free: 4.637 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.4374, allocations: 34.56 kB / 0.7133 GB, free: 4.594 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.4374, allocations: 0 / 0.7133 GB, free: 4.594 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0006714/0.4381, allocations: 370.3 kB / 0.7137 GB, free: 4.18 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.4381, allocations: 51.41 kB / 0.7137 GB, free: 4.117 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.065e-05/0.4382, allocations: 101.9 kB / 0.7138 GB, free: 4.008 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.4382, allocations: 25.7 kB / 0.7138 GB, free: 3.977 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.578e-05/0.4383, allocations: 84.08 kB / 0.7139 GB, free: 3.891 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.782e-05/0.4383, allocations: 43.36 kB / 0.714 GB, free: 3.848 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.4384, allocations: 33.64 kB / 0.714 GB, free: 3.809 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.4385, allocations: 318.8 kB / 0.7143 GB, free: 3.488 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.338e-05/0.4385, allocations: 19.98 kB / 0.7143 GB, free: 3.469 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.594e-05/0.4385, allocations: 36.33 kB / 0.7144 GB, free: 3.43 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.412e-05/0.4386, allocations: 57.84 kB / 0.7144 GB, free: 3.367 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.4386, allocations: 4 kB / 0.7144 GB, free: 3.363 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001263/0.4388, allocations: 94.14 kB / 0.7145 GB, free: 3.266 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.4388, allocations: 8 kB / 0.7145 GB, free: 3.258 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.4388, allocations: 160 / 0.7145 GB, free: 3.258 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.828e-06/0.4388, allocations: 0 / 0.7145 GB, free: 3.258 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.4389, allocations: 20 kB / 0.7145 GB, free: 3.238 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.4389, allocations: 3.984 kB / 0.7145 GB, free: 3.234 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.493e-05/0.439, allocations: 4 kB / 0.7145 GB, free: 3.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.439, allocations: 15.88 kB / 0.7146 GB, free: 3.215 MB / 0.545 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.392e-05/0.4391, allocations: 117.8 kB / 0.7147 GB, free: 3.09 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.593e-05/0.4391, allocations: 7.906 kB / 0.7147 GB, free: 3.082 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.918e-05/0.4391, allocations: 11.97 kB / 0.7147 GB, free: 3.07 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.4391, allocations: 0 / 0.7147 GB, free: 3.07 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.4392, allocations: 0 / 0.7147 GB, free: 3.07 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4392, allocations: 4 kB / 0.7147 GB, free: 3.066 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.4393, allocations: 177.6 kB / 0.7149 GB, free: 2.844 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4393, allocations: 0 / 0.7149 GB, free: 2.844 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.4394, allocations: 23.98 kB / 0.7149 GB, free: 2.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.4394, allocations: 7.938 kB / 0.7149 GB, free: 2.812 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.4394, allocations: 0 / 0.7149 GB, free: 2.812 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4394, allocations: 0 / 0.7149 GB, free: 2.812 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4394, allocations: 3.938 kB / 0.7149 GB, free: 2.809 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001791/0.4396, allocations: 131.5 kB / 0.715 GB, free: 2.664 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.373e-05/0.4397, allocations: 89.05 kB / 0.7151 GB, free: 2.559 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.4397, allocations: 4 kB / 0.7151 GB, free: 2.555 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.741e-05/0.4398, allocations: 8 kB / 0.7151 GB, free: 2.547 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.656e-05/0.4398, allocations: 3.984 kB / 0.7151 GB, free: 2.543 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.4399, allocations: 8 kB / 0.7151 GB, free: 2.535 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.975e-05/0.4399, allocations: 79.22 kB / 0.7152 GB, free: 2.457 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.483e-06/0.4399, allocations: 0 / 0.7152 GB, free: 2.457 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001921/0.4401, allocations: 23.94 kB / 0.7152 GB, free: 2.434 MB / 0.545 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.0004514/0.4406, allocations: 0.6671 MB / 0.7159 GB, free: 1.734 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000129/0.4407, allocations: 63.86 kB / 0.7159 GB, free: 1.672 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4407, allocations: 3.938 kB / 0.7159 GB, free: 1.668 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 3.955e-05/0.4407, allocations: 31.92 kB / 0.716 GB, free: 1.637 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001644/0.4409, allocations: 8 kB / 0.716 GB, free: 1.629 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.4422, allocations: 1.435 MB / 0.7174 GB, free: 112 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.4424, allocations: 0.6846 MB / 0.7181 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.058e-05/0.4425, allocations: 8.672 kB / 0.7181 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.294e-05/0.4425, allocations: 23.42 kB / 0.7181 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.4425, allocations: 3.938 kB / 0.7181 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01846/0.461, allocations: 1.639 MB / 0.7197 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.978/7.439, allocations: 10.11 kB / 0.7197 GB, free: 13.84 MB / 0.5606 GB (rm -f IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)