Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_AirTemperatureEnthalpyInversion",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.001102/0.001102, allocations: 108 kB / 15.61 MB, free: 152 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.001121/0.001121, allocations: 195.8 kB / 16.53 MB, free: 6.699 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.356/1.356, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9524/0.9524, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 61.06 kB / 0.5054 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1603, allocations: 80.93 MB / 0.5845 GB, free: 4.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.AirTemperatureEnthalpyInversion): time 0.3909/0.5513, allocations: 148.3 MB / 0.7292 GB, free: 1.297 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0001479/0.5515, allocations: 52.7 kB / 0.7293 GB, free: 1.27 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.18e-05/0.5515, allocations: 1.312 kB / 0.7293 GB, free: 1.27 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.5517, allocations: 5.297 kB / 0.7293 GB, free: 1.266 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.664e-05/0.5518, allocations: 13.47 kB / 0.7293 GB, free: 1.258 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007074/0.5525, allocations: 219.2 kB / 0.7295 GB, free: 1.156 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.428e-05/0.5526, allocations: 30.11 kB / 0.7296 GB, free: 1.148 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.117e-05/0.5526, allocations: 2.234 kB / 0.7296 GB, free: 1.148 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.484e-05/0.5526, allocations: 18.92 kB / 0.7296 GB, free: 1.141 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.89e-05/0.5527, allocations: 16.23 kB / 0.7296 GB, free: 1.133 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.5527, allocations: 1.344 kB / 0.7296 GB, free: 1.133 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000392/0.5531, allocations: 192.8 kB / 0.7298 GB, free: 1.059 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.92e-05/0.5532, allocations: 14 kB / 0.7298 GB, free: 1.051 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.74e-05/0.5532, allocations: 10.59 kB / 0.7298 GB, free: 1.047 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002257/0.5534, allocations: 116.9 kB / 0.7299 GB, free: 1.016 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.217e-06/0.5534, allocations: 0 / 0.7299 GB, free: 1.016 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.323e-06/0.5534, allocations: 0 / 0.7299 GB, free: 1.016 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.236e-06/0.5535, allocations: 1.219 kB / 0.7299 GB, free: 1.016 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003654/0.5538, allocations: 342.4 kB / 0.7302 GB, free: 0.6562 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.5539, allocations: 10.12 kB / 0.7302 GB, free: 0.6562 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.093e-05/0.5539, allocations: 30.75 kB / 0.7303 GB, free: 0.6172 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003047/0.5542, allocations: 33.62 kB / 0.7303 GB, free: 0.6094 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.5543, allocations: 168.5 kB / 0.7305 GB, free: 420 kB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.406e-05/0.5544, allocations: 32.45 kB / 0.7305 GB, free: 384 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.5544, allocations: 0 / 0.7305 GB, free: 384 kB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.5546, allocations: 53.39 kB / 0.7306 GB, free: 344 kB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.5546, allocations: 0 / 0.7306 GB, free: 344 kB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.5546, allocations: 1.094 kB / 0.7306 GB, free: 344 kB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.5546, allocations: 2.188 kB / 0.7306 GB, free: 344 kB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.25e-05/0.5547, allocations: 24.94 kB / 0.7306 GB, free: 336 kB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000342/0.555, allocations: 255.1 kB / 0.7308 GB, free: 56 kB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.073e-05/0.5551, allocations: 25.7 kB / 0.7308 GB, free: 28 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.259e-05/0.5551, allocations: 15.03 kB / 0.7309 GB, free: 12 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001689/0.5553, allocations: 95.67 kB / 0.731 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.5553, allocations: 30.56 kB / 0.731 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.5553, allocations: 4.969 kB / 0.731 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0002196/0.5556, allocations: 51.98 kB / 0.731 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.5556, allocations: 52.3 kB / 0.7311 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.856e-05/0.5557, allocations: 107.3 kB / 0.7312 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.5557, allocations: 25.83 kB / 0.7312 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.924e-05/0.5558, allocations: 98.11 kB / 0.7313 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.115e-05/0.5558, allocations: 13.69 kB / 0.7313 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.5558, allocations: 13.47 kB / 0.7313 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.5559, allocations: 316.8 kB / 0.7316 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.55e-05/0.5559, allocations: 4.578 kB / 0.7316 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.578e-05/0.556, allocations: 21.41 kB / 0.7317 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.521e-05/0.556, allocations: 32.83 kB / 0.7317 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.556, allocations: 3.938 kB / 0.7317 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.009e-05/0.5561, allocations: 53.55 kB / 0.7317 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.5561, allocations: 4.781 kB / 0.7317 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.5561, allocations: 1.25 kB / 0.7317 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.5561, allocations: 1.672 kB / 0.7318 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.314e-05/0.5562, allocations: 10.91 kB / 0.7318 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.5562, allocations: 5.156 kB / 0.7318 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.153e-05/0.5562, allocations: 6.078 kB / 0.7318 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-06/0.5563, allocations: 3.406 kB / 0.7318 GB, free: 15.08 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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 6.787e-05/0.5563, allocations: 109 kB / 0.7319 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.69e-05/0.5564, allocations: 5.25 kB / 0.7319 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.938e-05/0.5564, allocations: 9.141 kB / 0.7319 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.5564, allocations: 1.094 kB / 0.7319 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5564, allocations: 3.938 kB / 0.7319 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.5564, allocations: 5.156 kB / 0.7319 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002656/0.5567, allocations: 359.6 kB / 0.7322 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.5567, allocations: 1.125 kB / 0.7322 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.681e-05/0.5567, allocations: 3.078 kB / 0.7322 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.5567, allocations: 5.188 kB / 0.7323 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.5567, allocations: 9.016 kB / 0.7323 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.5568, allocations: 1.062 kB / 0.7323 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.5568, allocations: 4.062 kB / 0.7323 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.731e-05/0.5568, allocations: 71.39 kB / 0.7323 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.264e-05/0.5569, allocations: 82.11 kB / 0.7324 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.5569, allocations: 2.312 kB / 0.7324 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.693e-05/0.557, allocations: 5.359 kB / 0.7324 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.557, allocations: 1.188 kB / 0.7324 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.557, allocations: 5.125 kB / 0.7324 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.193e-05/0.5571, allocations: 85.22 kB / 0.7325 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5571, allocations: 1.125 kB / 0.7325 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001984/0.5573, allocations: 9.625 kB / 0.7325 GB, free: 14.29 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0003198/0.5576, allocations: 0.6098 MB / 0.7331 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.965e-05/0.5577, allocations: 19.33 kB / 0.7331 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.5577, allocations: 0 / 0.7331 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.154e-05/0.5577, allocations: 4.5 kB / 0.7331 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.558, allocations: 14.53 kB / 0.7332 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003537/0.5583, allocations: 151.1 kB / 0.7333 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002056/0.5585, allocations: 0.6762 MB / 0.734 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.756e-05/0.5586, allocations: 14.16 kB / 0.734 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.925e-05/0.5586, allocations: 13.11 kB / 0.734 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.5586, allocations: 0.625 kB / 0.734 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01605/0.5747, allocations: 1.418 MB / 0.7354 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.26/7.834, allocations: 2.453 kB / 0.7354 GB, free: 12.45 MB / 0.5606 GB (rm -f IDEAS_dev_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_dev_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Media_Examples_AirTemperatureEnthalpyInversion.fmu > IDEAS_dev_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)