Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_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.001562/0.001562, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002094/0.002094, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7626/0.7626, allocations: 132.2 MB / 422.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 64.62 kB / 0.5019 GB, free: 8.629 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1472, allocations: 80.2 MB / 0.5802 GB, free: 8.648 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002195/0.1494, allocations: 1.267 MB / 0.5814 GB, free: 7.367 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4124/0.5619, allocations: 147 MB / 0.725 GB, free: 5.984 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.785e-05/0.562, allocations: 1.125 kB / 0.725 GB, free: 5.984 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.082e-05/0.562, allocations: 1.359 kB / 0.725 GB, free: 5.984 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.435e-05/0.5621, allocations: 5.5 kB / 0.725 GB, free: 5.98 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003756/0.5624, allocations: 91.17 kB / 0.7251 GB, free: 5.938 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.853e-05/0.5625, allocations: 37.2 kB / 0.7251 GB, free: 5.922 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.016e-05/0.5626, allocations: 7 kB / 0.7251 GB, free: 5.918 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.821e-05/0.5626, allocations: 17.59 kB / 0.7251 GB, free: 5.91 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.157e-05/0.5627, allocations: 20.48 kB / 0.7252 GB, free: 5.898 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.5627, allocations: 2.219 kB / 0.7252 GB, free: 5.898 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000244/0.5629, allocations: 80.44 kB / 0.7252 GB, free: 5.867 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.697e-05/0.563, allocations: 10.28 kB / 0.7253 GB, free: 5.859 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.79e-05/0.563, allocations: 17.61 kB / 0.7253 GB, free: 5.852 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.5632, allocations: 63.64 kB / 0.7253 GB, free: 5.832 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.5632, allocations: 0 / 0.7253 GB, free: 5.832 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.433e-06/0.5632, allocations: 4 kB / 0.7253 GB, free: 5.828 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.5632, allocations: 1.156 kB / 0.7253 GB, free: 5.828 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.000353/0.5636, allocations: 349.7 kB / 0.7257 GB, free: 5.465 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.5636, allocations: 9.094 kB / 0.7257 GB, free: 5.465 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.5636, allocations: 36.67 kB / 0.7257 GB, free: 5.422 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.5638, allocations: 13.53 kB / 0.7257 GB, free: 5.422 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.979e-05/0.5639, allocations: 162.3 kB / 0.7259 GB, free: 5.227 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.5639, allocations: 5.859 kB / 0.7259 GB, free: 5.223 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.564, allocations: 11.72 kB / 0.7259 GB, free: 5.215 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001066/0.5641, allocations: 51.75 kB / 0.7259 GB, free: 5.176 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.5641, allocations: 0 / 0.7259 GB, free: 5.176 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.5641, allocations: 5.25 kB / 0.726 GB, free: 5.172 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.5641, allocations: 1.125 kB / 0.726 GB, free: 5.172 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.956e-05/0.5642, allocations: 13.64 kB / 0.726 GB, free: 5.172 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000157/0.5643, allocations: 177.7 kB / 0.7261 GB, free: 4.965 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 8.699e-05/0.5644, allocations: 51.3 kB / 0.7262 GB, free: 4.93 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.29e-05/0.5645, allocations: 21.75 kB / 0.7262 GB, free: 4.914 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.5645, allocations: 1.188 kB / 0.7262 GB, free: 4.914 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.5645, allocations: 31.66 kB / 0.7262 GB, free: 4.875 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 2.214e-06/0.5645, allocations: 5.016 kB / 0.7262 GB, free: 4.871 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0006703/0.5652, allocations: 373.9 kB / 0.7266 GB, free: 4.566 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.5652, allocations: 56.75 kB / 0.7267 GB, free: 4.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.757e-05/0.5653, allocations: 95.98 kB / 0.7267 GB, free: 4.398 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.5653, allocations: 26.83 kB / 0.7268 GB, free: 4.367 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.857e-05/0.5654, allocations: 81.03 kB / 0.7268 GB, free: 4.285 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.5654, allocations: 38.97 kB / 0.7269 GB, free: 4.254 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.283e-05/0.5654, allocations: 29.72 kB / 0.7269 GB, free: 4.23 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.528e-05/0.5655, allocations: 317.3 kB / 0.7272 GB, free: 3.914 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.62e-05/0.5656, allocations: 21.09 kB / 0.7272 GB, free: 3.906 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.021e-05/0.5656, allocations: 41.11 kB / 0.7273 GB, free: 3.879 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.927e-05/0.5657, allocations: 55.62 kB / 0.7273 GB, free: 3.848 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.5657, allocations: 0 / 0.7273 GB, free: 3.848 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001318/0.5659, allocations: 98.58 kB / 0.7274 GB, free: 3.789 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.5659, allocations: 6.406 kB / 0.7274 GB, free: 3.789 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.5659, allocations: 0 / 0.7274 GB, free: 3.789 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.5659, allocations: 1.781 kB / 0.7274 GB, free: 3.789 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.566, allocations: 20.05 kB / 0.7274 GB, free: 3.789 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.566, allocations: 5.891 kB / 0.7275 GB, free: 3.785 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.222e-05/0.5661, allocations: 1.25 kB / 0.7275 GB, free: 3.785 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-06/0.5661, allocations: 10.78 kB / 0.7275 GB, free: 3.777 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.829e-05/0.5662, allocations: 126.7 kB / 0.7276 GB, free: 3.648 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.5662, allocations: 5.688 kB / 0.7276 GB, free: 3.645 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.057e-05/0.5662, allocations: 9.938 kB / 0.7276 GB, free: 3.641 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.5662, allocations: 1.422 kB / 0.7276 GB, free: 3.641 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5663, allocations: 0.8125 kB / 0.7276 GB, free: 3.641 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.5663, allocations: 2.25 kB / 0.7276 GB, free: 3.641 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001269/0.5664, allocations: 179.3 kB / 0.7278 GB, free: 3.434 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.5664, allocations: 0 / 0.7278 GB, free: 3.434 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.5665, allocations: 24.88 kB / 0.7278 GB, free: 3.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.5665, allocations: 0.5156 kB / 0.7278 GB, free: 3.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.5666, allocations: 1.094 kB / 0.7278 GB, free: 3.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.5666, allocations: 1.906 kB / 0.7278 GB, free: 3.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.5666, allocations: 0 / 0.7278 GB, free: 3.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001995/0.5668, allocations: 142 kB / 0.7279 GB, free: 3.328 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.343e-05/0.5668, allocations: 87.06 kB / 0.728 GB, free: 3.23 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.5669, allocations: 1.188 kB / 0.728 GB, free: 3.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.709e-05/0.567, allocations: 7.109 kB / 0.728 GB, free: 3.227 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.804e-05/0.567, allocations: 9.391 kB / 0.728 GB, free: 3.227 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.567, allocations: 2.344 kB / 0.728 GB, free: 3.227 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.74e-05/0.567, allocations: 76.59 kB / 0.7281 GB, free: 3.152 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.567, allocations: 0 / 0.7281 GB, free: 3.152 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002086/0.5672, allocations: 21.47 kB / 0.7281 GB, free: 3.145 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.0003956/0.5677, allocations: 0.6731 MB / 0.7288 GB, free: 2.52 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001315/0.5678, allocations: 70.52 kB / 0.7289 GB, free: 2.492 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5678, allocations: 0 / 0.7289 GB, free: 2.492 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.094e-05/0.5678, allocations: 29.12 kB / 0.7289 GB, free: 2.484 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.5681, allocations: 9.625 kB / 0.7289 GB, free: 2.48 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.5693, allocations: 1.44 MB / 0.7303 GB, free: 1.176 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.5695, allocations: 0.6854 MB / 0.731 GB, free: 492 kB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.546e-05/0.5696, allocations: 10.59 kB / 0.731 GB, free: 488 kB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.783e-05/0.5697, allocations: 16.59 kB / 0.731 GB, free: 480 kB / 0.545 GB Notification: Performance of SimCode: time 2.01e-07/0.5697, allocations: 0 / 0.731 GB, free: 480 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01736/0.587, allocations: 1.639 MB / 0.7326 GB, free: 132 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.098/7.685, allocations: 2.031 kB / 0.7326 GB, free: 132 kB / 0.545 GB (rm -f IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)