Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.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.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",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.001338/0.001338, 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.001573/0.001574, allocations: 197.9 kB / 16.54 MB, free: 6.672 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.433/1.433, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9664/0.9664, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 60.75 kB / 0.5054 GB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1494, allocations: 80.93 MB / 0.5845 GB, free: 4.461 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.3879/0.5374, allocations: 147.8 MB / 0.7288 GB, free: 1.875 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0001773/0.5376, allocations: 47.23 kB / 0.7289 GB, free: 1.852 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.918e-05/0.5376, allocations: 0 / 0.7289 GB, free: 1.852 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.5378, allocations: 5.391 kB / 0.7289 GB, free: 1.848 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.179e-05/0.5379, allocations: 13.48 kB / 0.7289 GB, free: 1.84 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005022/0.5384, allocations: 111 kB / 0.729 GB, free: 1.789 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.264e-05/0.5385, allocations: 32.94 kB / 0.729 GB, free: 1.777 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.746e-05/0.5386, allocations: 3.484 kB / 0.729 GB, free: 1.777 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.79e-05/0.5386, allocations: 14.95 kB / 0.7291 GB, free: 1.773 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.898e-05/0.5387, allocations: 11.64 kB / 0.7291 GB, free: 1.77 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.414e-05/0.5387, allocations: 1.281 kB / 0.7291 GB, free: 1.77 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002971/0.539, allocations: 86.12 kB / 0.7291 GB, free: 1.734 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.025e-05/0.5391, allocations: 6.219 kB / 0.7292 GB, free: 1.734 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.713e-05/0.5391, allocations: 15.08 kB / 0.7292 GB, free: 1.727 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.5393, allocations: 75.17 kB / 0.7292 GB, free: 1.711 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.5393, allocations: 1.062 kB / 0.7292 GB, free: 1.711 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5394, allocations: 0 / 0.7292 GB, free: 1.711 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.5394, allocations: 0 / 0.7292 GB, free: 1.711 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.0004311/0.5398, allocations: 341.2 kB / 0.7296 GB, free: 1.352 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.5399, allocations: 12.78 kB / 0.7296 GB, free: 1.348 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.388e-05/0.5399, allocations: 35.84 kB / 0.7296 GB, free: 1.305 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000245/0.5402, allocations: 22.69 kB / 0.7296 GB, free: 1.301 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.5403, allocations: 166.9 kB / 0.7298 GB, free: 1.102 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.914e-05/0.5404, allocations: 33.36 kB / 0.7298 GB, free: 1.066 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.5404, allocations: 5.172 kB / 0.7298 GB, free: 1.062 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001607/0.5406, allocations: 49.61 kB / 0.7299 GB, free: 1.027 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.5406, allocations: 0 / 0.7299 GB, free: 1.027 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.5406, allocations: 0.9688 kB / 0.7299 GB, free: 1.027 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.5406, allocations: 1.375 kB / 0.7299 GB, free: 1.027 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.166e-05/0.5407, allocations: 22.56 kB / 0.7299 GB, free: 1.02 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004127/0.5411, allocations: 268.6 kB / 0.7302 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.596e-05/0.5412, allocations: 16.83 kB / 0.7302 GB, free: 0.7109 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.081e-05/0.5412, allocations: 5.891 kB / 0.7302 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.065e-05/0.5412, allocations: 3.5 kB / 0.7302 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.5413, allocations: 34.56 kB / 0.7302 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.5413, allocations: 0.9688 kB / 0.7302 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001428/0.5414, allocations: 34.61 kB / 0.7302 GB, free: 0.625 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.5415, allocations: 60.53 kB / 0.7303 GB, free: 0.5547 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.82e-05/0.5416, allocations: 109.8 kB / 0.7304 GB, free: 464 kB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.5416, allocations: 25.7 kB / 0.7304 GB, free: 432 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.266e-05/0.5417, allocations: 90.8 kB / 0.7305 GB, free: 340 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.324e-06/0.5417, allocations: 4.469 kB / 0.7305 GB, free: 336 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.782e-05/0.5417, allocations: 23.59 kB / 0.7305 GB, free: 312 kB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.5419, allocations: 312 kB / 0.7308 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.9e-05/0.5419, allocations: 5.562 kB / 0.7308 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.256e-05/0.5419, allocations: 24.17 kB / 0.7309 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.944e-05/0.542, allocations: 36.23 kB / 0.7309 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.542, allocations: 1.5 kB / 0.7309 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.303e-05/0.5421, allocations: 54.97 kB / 0.731 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.5421, allocations: 4.5 kB / 0.731 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.5421, allocations: 1.219 kB / 0.731 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.5422, allocations: 1.125 kB / 0.731 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.381e-05/0.5422, allocations: 5.719 kB / 0.731 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-05/0.5423, allocations: 5.031 kB / 0.731 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.252e-05/0.5423, allocations: 5.312 kB / 0.731 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.5423, allocations: 6.812 kB / 0.731 GB, free: 15.88 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 8.823e-05/0.5424, allocations: 117.5 kB / 0.7311 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.058e-05/0.5424, allocations: 6.031 kB / 0.7311 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.867e-05/0.5425, allocations: 4.094 kB / 0.7311 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.5425, allocations: 0 / 0.7311 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.5425, allocations: 5.062 kB / 0.7311 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.5425, allocations: 2.297 kB / 0.7311 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003061/0.5428, allocations: 342.3 kB / 0.7314 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.5428, allocations: 7.844 kB / 0.7315 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.423e-05/0.5428, allocations: 1.062 kB / 0.7315 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.5429, allocations: 5.062 kB / 0.7315 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.5429, allocations: 0 / 0.7315 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.5429, allocations: 0 / 0.7315 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5429, allocations: 1.094 kB / 0.7315 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.267e-05/0.543, allocations: 66.23 kB / 0.7315 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.71e-05/0.543, allocations: 83.67 kB / 0.7316 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.543, allocations: 0 / 0.7316 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.701e-05/0.5431, allocations: 5.844 kB / 0.7316 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.032e-05/0.5431, allocations: 0 / 0.7316 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.5431, allocations: 1.156 kB / 0.7316 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.28e-05/0.5432, allocations: 85.27 kB / 0.7317 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5432, allocations: 0 / 0.7317 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001956/0.5434, allocations: 6.438 kB / 0.7317 GB, free: 15.11 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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.0003573/0.5438, allocations: 0.6052 MB / 0.7323 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 8.207e-05/0.5439, allocations: 10.73 kB / 0.7323 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5439, allocations: 0 / 0.7323 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.161e-05/0.5439, allocations: 6.797 kB / 0.7323 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002419/0.5441, allocations: 13.88 kB / 0.7323 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003665/0.5445, allocations: 139.3 kB / 0.7325 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.5448, allocations: 0.6759 MB / 0.7331 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.403e-05/0.5449, allocations: 10.03 kB / 0.7331 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.298e-05/0.545, allocations: 12.5 kB / 0.7331 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.545, allocations: 0 / 0.7331 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01844/0.5634, allocations: 1.332 MB / 0.7344 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.113/7.677, allocations: 10.89 kB / 0.7344 GB, free: 13.33 MB / 0.5606 GB (rm -f IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_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_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > IDEAS_dev_IDEAS.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)