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.007044/0.007044, allocations: 100.2 kB / 15.73 MB, free: 6.062 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.001749/0.001749, allocations: 192.8 kB / 16.67 MB, free: 5.973 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7816/0.7816, allocations: 135.1 MB / 425.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 70.39 kB / 0.5851 GB, free: 21.9 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1594, allocations: 80.91 MB / 0.6641 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.AirTemperatureEnthalpyInversion): time 0.532/0.6915, allocations: 148.3 MB / 0.8089 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0001618/0.6917, allocations: 61.56 kB / 0.809 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.698e-05/0.6917, allocations: 0 / 0.809 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.6919, allocations: 0 / 0.809 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 7.665e-05/0.692, allocations: 16.83 kB / 0.809 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007826/0.6928, allocations: 215.5 kB / 0.8092 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 9.373e-05/0.6929, allocations: 40.33 kB / 0.8093 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 4.163e-05/0.6929, allocations: 5.156 kB / 0.8093 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 3.505e-05/0.693, allocations: 12.81 kB / 0.8093 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 7.426e-05/0.6931, allocations: 18.78 kB / 0.8093 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.6931, allocations: 3.188 kB / 0.8093 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003685/0.6934, allocations: 198.4 kB / 0.8095 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 4.104e-05/0.6935, allocations: 5.109 kB / 0.8095 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.92e-05/0.6935, allocations: 15.81 kB / 0.8095 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.6938, allocations: 115.2 kB / 0.8096 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.6938, allocations: 0 / 0.8096 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.064e-06/0.6938, allocations: 0 / 0.8096 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.6938, allocations: 0 / 0.8096 GB, free: 11.24 MB / 0.5919 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.0004174/0.6942, allocations: 344.6 kB / 0.8099 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.6943, allocations: 8.484 kB / 0.8099 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.6943, allocations: 37.25 kB / 0.81 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003008/0.6946, allocations: 26.28 kB / 0.81 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.6948, allocations: 166.9 kB / 0.8102 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.391e-05/0.6948, allocations: 30.14 kB / 0.8102 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.445e-06/0.6949, allocations: 2.562 kB / 0.8102 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001448/0.695, allocations: 49.42 kB / 0.8102 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.695, allocations: 3.938 kB / 0.8102 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.695, allocations: 4 kB / 0.8103 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.6951, allocations: 4.344 kB / 0.8103 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.729e-05/0.6951, allocations: 19.12 kB / 0.8103 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003428/0.6955, allocations: 265.6 kB / 0.8105 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 4.718e-05/0.6955, allocations: 21.81 kB / 0.8106 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.997e-05/0.6955, allocations: 10.83 kB / 0.8106 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001618/0.6957, allocations: 96.2 kB / 0.8107 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.6958, allocations: 34.5 kB / 0.8107 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.6958, allocations: 0 / 0.8107 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2): time 0.0002289/0.696, allocations: 48.86 kB / 0.8107 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.696, allocations: 61.41 kB / 0.8108 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.651e-05/0.6961, allocations: 109.3 kB / 0.8109 GB, free: 9.918 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.6961, allocations: 25.7 kB / 0.8109 GB, free: 9.887 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 3.915e-05/0.6962, allocations: 89.88 kB / 0.811 GB, free: 9.801 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.594e-06/0.6962, allocations: 6.156 kB / 0.811 GB, free: 9.797 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-05/0.6962, allocations: 19.56 kB / 0.811 GB, free: 9.781 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.6963, allocations: 310.8 kB / 0.8113 GB, free: 9.469 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.59e-05/0.6964, allocations: 3.781 kB / 0.8113 GB, free: 9.469 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.933e-05/0.6964, allocations: 33.59 kB / 0.8114 GB, free: 9.438 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.12e-05/0.6965, allocations: 25.92 kB / 0.8114 GB, free: 9.414 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.6965, allocations: 0 / 0.8114 GB, free: 9.414 MB / 0.5919 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.084e-05/0.6966, allocations: 63.2 kB / 0.8114 GB, free: 9.379 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.6966, allocations: 6.562 kB / 0.8115 GB, free: 9.379 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6966, allocations: 4.094 kB / 0.8115 GB, free: 9.375 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.6966, allocations: 0 / 0.8115 GB, free: 9.375 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.703e-05/0.6967, allocations: 12.19 kB / 0.8115 GB, free: 9.371 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.6967, allocations: 6.328 kB / 0.8115 GB, free: 9.367 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.774e-05/0.6967, allocations: 0 / 0.8115 GB, free: 9.367 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-06/0.6967, allocations: 2.594 kB / 0.8115 GB, free: 9.367 MB / 0.5919 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 7.467e-05/0.6968, allocations: 108.3 kB / 0.8116 GB, free: 9.254 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.592e-05/0.6968, allocations: 8.156 kB / 0.8116 GB, free: 9.25 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.549e-05/0.6969, allocations: 8.219 kB / 0.8116 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.6969, allocations: 4 kB / 0.8116 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.6969, allocations: 3.938 kB / 0.8116 GB, free: 9.234 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.6969, allocations: 3 kB / 0.8116 GB, free: 9.234 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002923/0.6972, allocations: 366.8 kB / 0.812 GB, free: 8.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.6972, allocations: 0 / 0.812 GB, free: 8.84 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.438e-05/0.6972, allocations: 1.812 kB / 0.812 GB, free: 8.84 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.6972, allocations: 5.5 kB / 0.812 GB, free: 8.836 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.6972, allocations: 2.484 kB / 0.812 GB, free: 8.836 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.6973, allocations: 6.125 kB / 0.812 GB, free: 8.832 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.6973, allocations: 0 / 0.812 GB, free: 8.832 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.563e-05/0.6973, allocations: 73.41 kB / 0.812 GB, free: 8.758 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.741e-05/0.6974, allocations: 81.05 kB / 0.8121 GB, free: 8.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.6974, allocations: 2.125 kB / 0.8121 GB, free: 8.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.441e-05/0.6975, allocations: 4.312 kB / 0.8121 GB, free: 8.66 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.183e-05/0.6975, allocations: 5.969 kB / 0.8121 GB, free: 8.656 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.6975, allocations: 0 / 0.8121 GB, free: 8.656 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 4.005e-05/0.6976, allocations: 89.02 kB / 0.8122 GB, free: 8.578 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/0.6976, allocations: 1.781 kB / 0.8122 GB, free: 8.578 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001894/0.6978, allocations: 5.812 kB / 0.8122 GB, free: 8.578 MB / 0.5919 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.0003746/0.6982, allocations: 0.617 MB / 0.8128 GB, free: 7.969 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 7.84e-05/0.6983, allocations: 13.02 kB / 0.8128 GB, free: 7.969 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.6983, allocations: 0 / 0.8128 GB, free: 7.969 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 1.506e-05/0.6983, allocations: 11.59 kB / 0.8128 GB, free: 7.965 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.6985, allocations: 6.438 kB / 0.8129 GB, free: 7.965 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003482/0.6989, allocations: 148.2 kB / 0.813 GB, free: 7.812 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.6991, allocations: 0.676 MB / 0.8137 GB, free: 7.117 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 5.55e-05/0.6992, allocations: 14.45 kB / 0.8137 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/0.6992, allocations: 13.75 kB / 0.8137 GB, free: 7.102 MB / 0.5919 GB Notification: Performance of SimCode: time 4.01e-07/0.6992, allocations: 0 / 0.8137 GB, free: 7.102 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01802/0.7173, allocations: 1.44 MB / 0.8151 GB, free: 6.727 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.202/7.919, allocations: 5.875 kB / 0.8151 GB, free: 6.727 MB / 0.5919 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)