Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust.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.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",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.0008413/0.0008413, allocations: 99.38 kB / 15.37 MB, free: 0.707 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.0009583/0.0009582, allocations: 181.9 kB / 16.28 MB, free: 6.656 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.288/1.288, allocations: 223.3 MB / 240.3 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9348/0.9348, allocations: 135.3 MB / 426.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002906, allocations: 9.031 kB / 0.5077 GB, free: 4.645 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1389, allocations: 82.32 MB / 0.5881 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.889/1.028, allocations: 372 MB / 0.9514 GB, free: 16.26 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.04021/1.068, allocations: 44.15 MB / 0.9945 GB, free: 13.7 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005569/1.074, allocations: 150.5 kB / 0.9947 GB, free: 13.7 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.006131/1.08, allocations: 2.385 MB / 0.997 GB, free: 12.55 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01576/1.096, allocations: 6.818 MB / 1.004 GB, free: 9.438 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.007566/1.103, allocations: 3.403 MB / 1.007 GB, free: 7.449 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01255/1.116, allocations: 15.42 MB / 1.022 GB, free: 13.96 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005565/1.121, allocations: 4.564 MB / 1.026 GB, free: 9.457 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01197/1.133, allocations: 5.394 MB / 1.032 GB, free: 4.688 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007319/1.141, allocations: 3.411 MB / 1.035 GB, free: 1.555 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.000766/1.142, allocations: 168 kB / 1.035 GB, free: 1.391 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01168/1.153, allocations: 6.821 MB / 1.042 GB, free: 11.27 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0014/1.155, allocations: 1.352 MB / 1.043 GB, free: 9.938 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002936/1.158, allocations: 2.357 MB / 1.046 GB, free: 7.578 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.01035/1.168, allocations: 9.167 MB / 1.054 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/1.168, allocations: 0 / 1.054 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.924e-06/1.168, allocations: 4 kB / 1.054 GB, free: 14.83 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.961e-05/1.168, allocations: 0 / 1.054 GB, free: 14.83 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 856 * Number of variables: 856 Notification: Performance of Generate backend data structure: time 0.007751/1.176, allocations: 4.705 MB / 1.059 GB, free: 10.1 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/1.176, allocations: 16.03 kB / 1.059 GB, free: 10.08 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005905/1.177, allocations: 463.9 kB / 1.06 GB, free: 9.617 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01046/1.187, allocations: 1.916 MB / 1.061 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006641/1.194, allocations: 3.601 MB / 1.065 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00144/1.195, allocations: 0.63 MB / 1.066 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004992/1.196, allocations: 343 kB / 1.066 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0081/1.204, allocations: 4.553 MB / 1.07 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.702e-05/1.204, allocations: 0 / 1.07 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003204/1.204, allocations: 140 kB / 1.07 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001137/1.204, allocations: 134.5 kB / 1.071 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008522/1.213, allocations: 4.062 MB / 1.075 GB, free: 10.15 MB / 0.7325 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02549/1.238, allocations: 18.62 MB / 1.093 GB, free: 6.332 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003958/1.242, allocations: 1.805 MB / 1.094 GB, free: 4.488 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002113/1.244, allocations: 0.94 MB / 1.095 GB, free: 3.555 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006363/1.245, allocations: 412.3 kB / 1.096 GB, free: 3.086 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002419/1.247, allocations: 1.108 MB / 1.097 GB, free: 1.953 MB / 0.7481 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001419/1.249, allocations: 150.1 kB / 1.097 GB, free: 1.805 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=133): time 2.785e-06/1.249, allocations: 0 / 1.097 GB, free: 1.805 MB / 0.7481 GB Notification: Performance of matching and sorting (n=133): time 0.007412/1.256, allocations: 2.905 MB / 1.1 GB, free: 14.87 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/1.256, allocations: 145.8 kB / 1.1 GB, free: 14.7 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004512/1.261, allocations: 3.386 MB / 1.103 GB, free: 11.29 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001409/1.261, allocations: 53.7 kB / 1.103 GB, free: 11.23 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.001731/1.263, allocations: 2.151 MB / 1.105 GB, free: 9.07 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003965/1.263, allocations: 483.9 kB / 1.106 GB, free: 8.602 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002643/1.263, allocations: 202.2 kB / 1.106 GB, free: 8.398 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.249e-05/1.264, allocations: 301.1 kB / 1.106 GB, free: 8.102 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002692/1.266, allocations: 1.051 MB / 1.107 GB, free: 7.047 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003347/1.27, allocations: 2.129 MB / 1.109 GB, free: 4.41 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005542/1.275, allocations: 3.091 MB / 1.113 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.481e-05/1.275, allocations: 15.88 kB / 1.113 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007322/1.283, allocations: 3.408 MB / 1.116 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006199/1.283, allocations: 1.05 MB / 1.117 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.535e-05/1.283, allocations: 32 kB / 1.117 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.726e-05/1.283, allocations: 44 kB / 1.117 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002655/1.286, allocations: 0.6436 MB / 1.118 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.444e-05/1.286, allocations: 67.83 kB / 1.118 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004362/1.29, allocations: 0.5898 MB / 1.118 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002109/1.291, allocations: 128 kB / 1.118 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/1.291, allocations: 4 kB / 1.118 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006647/1.297, allocations: 3.016 MB / 1.121 GB, free: 7.422 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.905e-05/1.297, allocations: 32.09 kB / 1.121 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.258e-05/1.297, allocations: 48 kB / 1.121 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00256/1.3, allocations: 0.6396 MB / 1.122 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.287e-05/1.3, allocations: 64.64 kB / 1.122 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003658/1.304, allocations: 482.1 kB / 1.123 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001813/1.304, allocations: 132 kB / 1.123 GB, free: 6.043 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (291): * Single equations (assignments): 287 * Array equations: 3 * Algorithm blocks: 1 * 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.001958/1.306, allocations: 1.171 MB / 1.124 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004615/1.306, allocations: 359.5 kB / 1.124 GB, free: 4.504 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005306/1.312, allocations: 2.322 MB / 1.126 GB, free: 2.152 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/1.312, allocations: 16 kB / 1.126 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/1.312, allocations: 0 / 1.126 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004158/1.316, allocations: 1.96 MB / 1.128 GB, free: 88 kB / 0.7794 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/1.328, allocations: 6.429 MB / 1.135 GB, free: 9.438 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/1.328, allocations: 12 kB / 1.135 GB, free: 9.426 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001651/1.33, allocations: 331.6 kB / 1.135 GB, free: 9.102 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002035/1.33, allocations: 60.86 kB / 1.135 GB, free: 9.039 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/1.33, allocations: 47.97 kB / 1.135 GB, free: 8.992 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/1.331, allocations: 1.432 MB / 1.136 GB, free: 7.426 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.095e-05/1.331, allocations: 19.88 kB / 1.136 GB, free: 7.406 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00686/1.338, allocations: 3.381 MB / 1.14 GB, free: 3.883 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/1.339, allocations: 0.5941 MB / 1.14 GB, free: 3.266 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003666/1.339, allocations: 39.98 kB / 1.14 GB, free: 3.227 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002706/1.342, allocations: 363.4 kB / 1.141 GB, free: 2.871 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/1.342, allocations: 112.6 kB / 1.141 GB, free: 2.758 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/1.342, allocations: 67.97 kB / 1.141 GB, free: 2.691 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.003448/1.346, allocations: 2.291 MB / 1.143 GB, free: 400 kB / 0.795 GB Notification: Performance of sort global known variables: time 2.01e-07/1.346, allocations: 0 / 1.143 GB, free: 400 kB / 0.795 GB Notification: Performance of remove unused functions: time 0.004832/1.351, allocations: 2.041 MB / 1.145 GB, free: 14.34 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * Number of states: 4 (conPI.I.y,vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1]) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007973/1.359, allocations: 4.337 MB / 1.149 GB, free: 9.895 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.008998/1.368, allocations: 3.938 MB / 1.153 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/1.368, allocations: 4 kB / 1.153 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.00249/1.37, allocations: 1.068 MB / 1.154 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01255/1.383, allocations: 1.614 MB / 1.156 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2952/1.678, allocations: 33.67 MB / 1.189 GB, free: 326.4 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001821/1.68, allocations: 2.661 MB / 1.191 GB, free: 325.4 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.004431/1.684, allocations: 1.042 MB / 1.192 GB, free: 325.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/1.686, allocations: 1.747 MB / 1.194 GB, free: 323.9 MB / 0.8106 GB Notification: Performance of SimCode: time 1.223e-06/1.686, allocations: 0 / 1.194 GB, free: 323.9 MB / 0.8106 GB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: IDEAS.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).