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.001065/0.001065, 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.001073/0.001073, allocations: 194.5 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.342/1.342, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9087/0.9087, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 61.19 kB / 0.5054 GB, free: 5.211 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1373, allocations: 80.94 MB / 0.5845 GB, free: 4.434 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.9189/1.056, allocations: 379.2 MB / 0.9548 GB, free: 16.2 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.04416/1.1, allocations: 44.42 MB / 0.9982 GB, free: 10.04 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006043/1.106, allocations: 177.2 kB / 0.9984 GB, free: 10.04 MB / 0.67 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Fluid/FMI/Conversion/AirToOutlet.mo:96:3-98:60:writable] Warning: Connector bacPro_internal is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Fluid/FMI/Conversion/InletToAir.mo:80:3-82:60:writable] Warning: Connector bacPro_internal is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.006728/1.113, allocations: 2.809 MB / 1.001 GB, free: 8.75 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01766/1.131, allocations: 7.276 MB / 1.008 GB, free: 5.535 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.007981/1.139, allocations: 3.752 MB / 1.012 GB, free: 2.395 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01347/1.152, allocations: 11.51 MB / 1.023 GB, free: 8.934 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007421/1.16, allocations: 5.564 MB / 1.029 GB, free: 3.414 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01252/1.172, allocations: 6.361 MB / 1.035 GB, free: 13.88 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006514/1.179, allocations: 3.607 MB / 1.038 GB, free: 10.55 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.001187/1.18, allocations: 496 kB / 1.039 GB, free: 10.06 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01237/1.193, allocations: 6.158 MB / 1.045 GB, free: 4.586 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.002137/1.195, allocations: 1.719 MB / 1.046 GB, free: 2.879 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.004322/1.199, allocations: 2.777 MB / 1.049 GB, free: 112 kB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.01365/1.213, allocations: 9.171 MB / 1.058 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/1.213, allocations: 0 / 1.058 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/1.213, allocations: 0 / 1.058 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.465e-05/1.213, allocations: 0 / 1.058 GB, free: 7.305 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.009262/1.222, allocations: 5.65 MB / 1.064 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/1.222, allocations: 12.03 kB / 1.064 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005287/1.223, allocations: 471.8 kB / 1.064 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01062/1.233, allocations: 1.791 MB / 1.066 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006953/1.24, allocations: 3.587 MB / 1.069 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001491/1.242, allocations: 0.5938 MB / 1.07 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000583/1.242, allocations: 347.2 kB / 1.07 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009023/1.251, allocations: 4.492 MB / 1.075 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.618e-05/1.251, allocations: 4 kB / 1.075 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000347/1.252, allocations: 138.6 kB / 1.075 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001215/1.252, allocations: 134.5 kB / 1.075 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009125/1.261, allocations: 3.933 MB / 1.079 GB, free: 2.012 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.02736/1.288, allocations: 19.01 MB / 1.097 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003987/1.292, allocations: 1.766 MB / 1.099 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002113/1.295, allocations: 0.9099 MB / 1.1 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006661/1.295, allocations: 411.4 kB / 1.1 GB, free: 10.61 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002445/1.298, allocations: 1.081 MB / 1.101 GB, free: 9.5 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=129): time 3.446e-06/1.298, allocations: 0 / 1.101 GB, free: 9.5 MB / 0.7637 GB Notification: Performance of matching and sorting (n=129): time 0.007932/1.306, allocations: 2.842 MB / 1.104 GB, free: 6.629 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.596e-05/1.306, allocations: 151.9 kB / 1.104 GB, free: 6.453 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005917/1.312, allocations: 3.503 MB / 1.108 GB, free: 2.934 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001926/1.312, allocations: 57.7 kB / 1.108 GB, free: 2.871 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.001793/1.314, allocations: 2.147 MB / 1.11 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004308/1.314, allocations: 462.8 kB / 1.11 GB, free: 272 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007724/1.315, allocations: 486.7 kB / 1.111 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.321e-05/1.315, allocations: 309.1 kB / 1.111 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002777/1.318, allocations: 1.052 MB / 1.112 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003434/1.321, allocations: 2.109 MB / 1.114 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005632/1.327, allocations: 3.077 MB / 1.117 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.116e-05/1.327, allocations: 12 kB / 1.117 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=291) (initialization): time 0.007731/1.335, allocations: 3.381 MB / 1.12 GB, free: 4.871 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.984e-05/1.335, allocations: 45.7 kB / 1.121 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.422e-05/1.335, allocations: 35.98 kB / 1.121 GB, free: 4.785 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.905e-05/1.335, allocations: 44 kB / 1.121 GB, free: 4.742 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002678/1.338, allocations: 0.6322 MB / 1.121 GB, free: 4.109 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.579e-05/1.338, allocations: 59.8 kB / 1.121 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003664/1.341, allocations: 498.3 kB / 1.122 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002165/1.342, allocations: 131.9 kB / 1.122 GB, free: 3.434 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004208/1.346, allocations: 1.96 MB / 1.124 GB, free: 1.465 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003425/1.349, allocations: 2.087 MB / 1.126 GB, free: 14.86 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00565/1.355, allocations: 3.002 MB / 1.129 GB, free: 11.41 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.987e-05/1.355, allocations: 12 kB / 1.129 GB, free: 11.4 MB / 0.795 GB Notification: Performance of matching and sorting (n=291) (initialization_lambda0): time 0.007603/1.362, allocations: 3.325 MB / 1.132 GB, free: 8.066 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/1.363, allocations: 49.64 kB / 1.132 GB, free: 8.012 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-05/1.363, allocations: 32 kB / 1.132 GB, free: 7.98 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.909e-05/1.363, allocations: 44 kB / 1.132 GB, free: 7.938 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002595/1.365, allocations: 0.6241 MB / 1.133 GB, free: 7.312 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.399e-05/1.365, allocations: 68.73 kB / 1.133 GB, free: 7.246 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003637/1.369, allocations: 418.7 kB / 1.133 GB, free: 6.84 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002014/1.369, allocations: 128 kB / 1.133 GB, free: 6.715 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 143 * 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 (287): * Single equations (assignments): 283 * 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.000525/1.37, allocations: 343.3 kB / 1.134 GB, free: 6.371 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006491/1.37, allocations: 367.5 kB / 1.134 GB, free: 6.008 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005606/1.376, allocations: 2.282 MB / 1.136 GB, free: 3.695 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/1.376, allocations: 12 kB / 1.136 GB, free: 3.684 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/1.376, allocations: 7.938 kB / 1.136 GB, free: 3.676 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004258/1.38, allocations: 1.921 MB / 1.138 GB, free: 1.668 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/1.392, allocations: 6.131 MB / 1.144 GB, free: 11.33 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/1.392, allocations: 11.98 kB / 1.144 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/1.394, allocations: 324.3 kB / 1.144 GB, free: 11 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002109/1.394, allocations: 52.83 kB / 1.144 GB, free: 10.95 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/1.394, allocations: 47.97 kB / 1.145 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/1.395, allocations: 1.553 MB / 1.146 GB, free: 9.207 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.796e-06/1.395, allocations: 11.94 kB / 1.146 GB, free: 9.195 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007035/1.402, allocations: 3.343 MB / 1.149 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/1.404, allocations: 0.6172 MB / 1.15 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005778/1.404, allocations: 39.98 kB / 1.15 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002494/1.407, allocations: 179.8 kB / 1.15 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001945/1.407, allocations: 112.6 kB / 1.15 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/1.407, allocations: 63.95 kB / 1.15 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.003937/1.411, allocations: 2.375 MB / 1.153 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.21e-07/1.411, allocations: 3.938 kB / 1.153 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005142/1.416, allocations: 1.998 MB / 1.155 GB, free: 300 kB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (127): * Single equations (assignments): 124 * 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.008344/1.424, allocations: 4.294 MB / 1.159 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.009912/1.434, allocations: 4.085 MB / 1.163 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/1.434, allocations: 0 / 1.163 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.002479/1.437, allocations: 1.046 MB / 1.164 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007876/1.445, allocations: 1.728 MB / 1.165 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2625/1.707, allocations: 32.63 MB / 1.197 GB, free: 344.2 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001713/1.709, allocations: 2.655 MB / 1.2 GB, free: 343.2 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.004395/1.713, allocations: 1.063 MB / 1.201 GB, free: 343.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00171/1.715, allocations: 1.733 MB / 1.203 GB, free: 341.8 MB / 0.8262 GB Notification: Performance of SimCode: time 6.01e-07/1.715, allocations: 0 / 1.203 GB, free: 341.8 MB / 0.8262 GB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: IDEAS.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).