Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_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.004603/0.004603, allocations: 100 kB / 15.73 MB, free: 6.004 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.001317/0.001317, allocations: 192.8 kB / 16.67 MB, free: 5.922 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8564/0.8564, allocations: 132.2 MB / 422.7 MB, free: 6.574 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 62.12 kB / 0.5808 GB, free: 24.03 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.135, allocations: 80.22 MB / 0.6592 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.AirTemperatureEnthalpyInversion): time 0.4869/0.6219, allocations: 148.3 MB / 0.804 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0001493/0.6221, allocations: 57.53 kB / 0.804 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.052e-05/0.6221, allocations: 0 / 0.804 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.6223, allocations: 6.5 kB / 0.804 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 7.93e-05/0.6224, allocations: 15.72 kB / 0.804 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008576/0.6232, allocations: 206.8 kB / 0.8042 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 9.888e-05/0.6234, allocations: 35.42 kB / 0.8043 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.632e-05/0.6234, allocations: 5.656 kB / 0.8043 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 3.752e-05/0.6235, allocations: 12.36 kB / 0.8043 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 7.152e-05/0.6235, allocations: 17.25 kB / 0.8043 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.6236, allocations: 5.531 kB / 0.8043 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005082/0.6241, allocations: 195.3 kB / 0.8045 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 4.439e-05/0.6241, allocations: 8.734 kB / 0.8045 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 3.369e-05/0.6242, allocations: 11.58 kB / 0.8045 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.6245, allocations: 114.2 kB / 0.8046 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.6245, allocations: 0 / 0.8046 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.383e-06/0.6245, allocations: 1.281 kB / 0.8046 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.6245, allocations: 0 / 0.8046 GB, free: 11.64 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.0005163/0.625, allocations: 351 kB / 0.805 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.6251, allocations: 14.03 kB / 0.805 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.385e-05/0.6251, allocations: 30.75 kB / 0.805 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003978/0.6256, allocations: 29.16 kB / 0.805 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000159/0.6257, allocations: 163.7 kB / 0.8052 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.558e-05/0.6258, allocations: 30.58 kB / 0.8052 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.6258, allocations: 3.391 kB / 0.8052 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001712/0.626, allocations: 47.09 kB / 0.8053 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.626, allocations: 4 kB / 0.8053 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.6261, allocations: 1.734 kB / 0.8053 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.6261, allocations: 2.281 kB / 0.8053 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.793e-05/0.6262, allocations: 26.11 kB / 0.8053 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004424/0.6266, allocations: 258.9 kB / 0.8056 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 6.388e-05/0.6267, allocations: 21.98 kB / 0.8056 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.537e-05/0.6267, allocations: 14.98 kB / 0.8056 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001955/0.6269, allocations: 91.45 kB / 0.8057 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.627, allocations: 31.84 kB / 0.8057 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=2): time 1.483e-06/0.627, allocations: 0 / 0.8057 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2): time 0.0003036/0.6273, allocations: 55.81 kB / 0.8058 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.6274, allocations: 55.53 kB / 0.8058 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.6275, allocations: 110.8 kB / 0.8059 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.6275, allocations: 25.7 kB / 0.8059 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/0.6276, allocations: 90.84 kB / 0.806 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 1.056e-05/0.6276, allocations: 7.75 kB / 0.806 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.871e-05/0.6277, allocations: 15.97 kB / 0.8061 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001784/0.6278, allocations: 314.5 kB / 0.8064 GB, free: 9.871 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.149e-05/0.6279, allocations: 6.812 kB / 0.8064 GB, free: 9.867 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.247e-05/0.6279, allocations: 29.67 kB / 0.8064 GB, free: 9.84 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.137e-05/0.628, allocations: 30.17 kB / 0.8064 GB, free: 9.812 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.628, allocations: 1.312 kB / 0.8064 GB, free: 9.812 MB / 0.5919 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001243/0.6281, allocations: 53.55 kB / 0.8065 GB, free: 9.777 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.6282, allocations: 8.719 kB / 0.8065 GB, free: 9.773 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.6282, allocations: 1.406 kB / 0.8065 GB, free: 9.773 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.6282, allocations: 5.719 kB / 0.8065 GB, free: 9.77 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.523e-05/0.6283, allocations: 7.25 kB / 0.8065 GB, free: 9.77 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.6283, allocations: 5.031 kB / 0.8065 GB, free: 9.766 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.364e-05/0.6283, allocations: 1.062 kB / 0.8065 GB, free: 9.766 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.341e-06/0.6284, allocations: 5.938 kB / 0.8065 GB, free: 9.766 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 0.0001075/0.6285, allocations: 112.9 kB / 0.8066 GB, free: 9.648 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.622e-05/0.6285, allocations: 4.891 kB / 0.8066 GB, free: 9.645 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.747e-05/0.6286, allocations: 13.12 kB / 0.8066 GB, free: 9.633 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.6286, allocations: 0 / 0.8066 GB, free: 9.633 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.6286, allocations: 5.031 kB / 0.8066 GB, free: 9.629 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.6286, allocations: 0 / 0.8066 GB, free: 9.629 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004453/0.629, allocations: 362.7 kB / 0.807 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.6291, allocations: 1.5 kB / 0.807 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.447e-05/0.6291, allocations: 4.75 kB / 0.807 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.6291, allocations: 9.406 kB / 0.807 GB, free: 9.23 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.6291, allocations: 1.438 kB / 0.807 GB, free: 9.23 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.6291, allocations: 1.344 kB / 0.807 GB, free: 9.23 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6292, allocations: 1.406 kB / 0.807 GB, free: 9.23 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000109/0.6293, allocations: 65.08 kB / 0.8071 GB, free: 9.16 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.871e-05/0.6293, allocations: 82.36 kB / 0.8071 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.388e-05/0.6294, allocations: 4.422 kB / 0.8071 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.6295, allocations: 12.81 kB / 0.8072 GB, free: 9.055 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.451e-05/0.6295, allocations: 3.844 kB / 0.8072 GB, free: 9.055 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.6295, allocations: 1.844 kB / 0.8072 GB, free: 9.055 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 6.619e-05/0.6296, allocations: 78.94 kB / 0.8072 GB, free: 8.98 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6296, allocations: 0 / 0.8072 GB, free: 8.98 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000363/0.63, allocations: 9.25 kB / 0.8072 GB, free: 8.98 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.0005404/0.6305, allocations: 0.6087 MB / 0.8078 GB, free: 8.375 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 9.912e-05/0.6306, allocations: 19.89 kB / 0.8079 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.6307, allocations: 0 / 0.8079 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 1.848e-05/0.6307, allocations: 7.75 kB / 0.8079 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.631, allocations: 15.3 kB / 0.8079 GB, free: 8.363 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004958/0.6315, allocations: 150.6 kB / 0.808 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004147/0.6319, allocations: 0.6779 MB / 0.8087 GB, free: 7.516 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.196e-05/0.632, allocations: 8.641 kB / 0.8087 GB, free: 7.512 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.502e-05/0.632, allocations: 8.625 kB / 0.8087 GB, free: 7.504 MB / 0.5919 GB Notification: Performance of SimCode: time 3.2e-07/0.6321, allocations: 3.938 kB / 0.8087 GB, free: 7.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0284/0.6605, allocations: 1.439 MB / 0.8101 GB, free: 7.148 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.64/8.3, allocations: 9.891 kB / 0.8101 GB, free: 7.145 MB / 0.5919 GB (rm -f IDEAS_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Media_Examples_AirTemperatureEnthalpyInversion.fmu > IDEAS_IDEAS.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)