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.001172/0.001172, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001281/0.001281, allocations: 190.2 kB / 16.13 MB, free: 6.715 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.192/1.192, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8189/0.8189, allocations: 135.1 MB / 425.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 68.66 kB / 0.5048 GB, free: 5.684 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1211, allocations: 80.92 MB / 0.5838 GB, free: 4.926 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.7502/0.8713, allocations: 377.3 MB / 0.9523 GB, free: 16 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03618/0.9075, allocations: 44.67 MB / 0.9959 GB, free: 10.86 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004313/0.9118, allocations: 156.8 kB / 0.996 GB, free: 10.86 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.004553/0.9164, allocations: 2.381 MB / 0.9984 GB, free: 9.723 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01199/0.9284, allocations: 6.819 MB / 1.005 GB, free: 6.605 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.005881/0.9343, allocations: 3.397 MB / 1.008 GB, free: 4.125 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01162/0.9459, allocations: 15.44 MB / 1.023 GB, free: 6.762 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004878/0.9508, allocations: 4.787 MB / 1.028 GB, free: 2.031 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009099/0.9599, allocations: 5.648 MB / 1.034 GB, free: 12.82 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004636/0.9646, allocations: 3.714 MB / 1.037 GB, free: 9.379 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.000467/0.9651, allocations: 264 kB / 1.037 GB, free: 9.121 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01004/0.9751, allocations: 6.921 MB / 1.044 GB, free: 2.906 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.00124/0.9764, allocations: 1.506 MB / 1.046 GB, free: 1.414 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002368/0.9787, allocations: 2.536 MB / 1.048 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00906/0.9878, allocations: 9.383 MB / 1.057 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.9878, allocations: 0 / 1.057 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.002e-06/0.9878, allocations: 0 / 1.057 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.431e-05/0.9879, allocations: 0 / 1.057 GB, free: 5.93 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.007935/0.9958, allocations: 5.672 MB / 1.063 GB, free: 232 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.9959, allocations: 8.031 kB / 1.063 GB, free: 224 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004898/0.9963, allocations: 470 kB / 1.063 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009621/1.006, allocations: 1.794 MB / 1.065 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00557/1.012, allocations: 3.593 MB / 1.069 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001281/1.013, allocations: 0.5902 MB / 1.069 GB, free: 9.766 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004156/1.013, allocations: 347.2 kB / 1.07 GB, free: 9.43 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007052/1.02, allocations: 4.497 MB / 1.074 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.992e-05/1.02, allocations: 4 kB / 1.074 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002972/1.021, allocations: 136 kB / 1.074 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001025/1.021, allocations: 130.5 kB / 1.074 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007581/1.028, allocations: 3.98 MB / 1.078 GB, free: 0.582 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.02117/1.05, allocations: 18.54 MB / 1.096 GB, free: 12.86 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003275/1.053, allocations: 1.793 MB / 1.098 GB, free: 11.02 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001767/1.055, allocations: 0.9333 MB / 1.099 GB, free: 10.09 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005591/1.055, allocations: 418.2 kB / 1.099 GB, free: 9.617 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002115/1.057, allocations: 1.099 MB / 1.1 GB, free: 8.492 MB / 0.7637 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009331/1.058, allocations: 150.1 kB / 1.1 GB, free: 8.344 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=133): time 2.745e-06/1.058, allocations: 0 / 1.1 GB, free: 8.344 MB / 0.7637 GB Notification: Performance of matching and sorting (n=133): time 0.006473/1.065, allocations: 2.885 MB / 1.103 GB, free: 5.43 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/1.065, allocations: 145.8 kB / 1.103 GB, free: 5.258 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003766/1.069, allocations: 3.39 MB / 1.107 GB, free: 1.848 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001289/1.069, allocations: 61.64 kB / 1.107 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.001346/1.07, allocations: 2.142 MB / 1.109 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000336/1.07, allocations: 482.1 kB / 1.109 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006273/1.071, allocations: 495.9 kB / 1.11 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.273e-05/1.071, allocations: 305.1 kB / 1.11 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002344/1.074, allocations: 1.061 MB / 1.111 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002904/1.076, allocations: 2.123 MB / 1.113 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004709/1.081, allocations: 3.091 MB / 1.116 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.249e-05/1.081, allocations: 11.94 kB / 1.116 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006095/1.087, allocations: 3.397 MB / 1.12 GB, free: 3.711 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/1.087, allocations: 49.7 kB / 1.12 GB, free: 3.656 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.479e-05/1.087, allocations: 28 kB / 1.12 GB, free: 3.629 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.78e-05/1.087, allocations: 48.66 kB / 1.12 GB, free: 3.582 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002324/1.09, allocations: 0.6396 MB / 1.12 GB, free: 2.941 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.12e-05/1.09, allocations: 59.8 kB / 1.12 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003289/1.093, allocations: 0.5899 MB / 1.121 GB, free: 2.293 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/1.093, allocations: 124 kB / 1.121 GB, free: 2.172 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003298/1.097, allocations: 1.971 MB / 1.123 GB, free: 200 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002811/1.099, allocations: 2.088 MB / 1.125 GB, free: 13.6 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004555/1.104, allocations: 3.028 MB / 1.128 GB, free: 10.12 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.079e-05/1.104, allocations: 8 kB / 1.128 GB, free: 10.12 MB / 0.795 GB Notification: Performance of matching and sorting (n=295) (initialization_lambda0): time 0.005991/1.11, allocations: 3.35 MB / 1.131 GB, free: 6.75 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/1.11, allocations: 46.36 kB / 1.131 GB, free: 6.699 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.217e-05/1.11, allocations: 36 kB / 1.131 GB, free: 6.664 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.993e-05/1.11, allocations: 44 kB / 1.131 GB, free: 6.621 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002233/1.112, allocations: 0.6318 MB / 1.132 GB, free: 5.988 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-05/1.112, allocations: 67.78 kB / 1.132 GB, free: 5.922 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003028/1.115, allocations: 0.5139 MB / 1.133 GB, free: 5.41 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/1.116, allocations: 128 kB / 1.133 GB, free: 5.285 MB / 0.795 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.0003619/1.116, allocations: 351.2 kB / 1.133 GB, free: 4.934 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000393/1.116, allocations: 355.5 kB / 1.133 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004528/1.121, allocations: 2.316 MB / 1.136 GB, free: 2.234 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/1.121, allocations: 19.92 kB / 1.136 GB, free: 2.215 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/1.121, allocations: 3.938 kB / 1.136 GB, free: 2.211 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003526/1.124, allocations: 1.948 MB / 1.138 GB, free: 180 kB / 0.795 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.01059/1.135, allocations: 6.424 MB / 1.144 GB, free: 9.539 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/1.135, allocations: 8 kB / 1.144 GB, free: 9.531 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00149/1.137, allocations: 328.2 kB / 1.144 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001873/1.137, allocations: 52.83 kB / 1.144 GB, free: 9.156 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.76e-05/1.137, allocations: 43.98 kB / 1.144 GB, free: 9.113 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009834/1.138, allocations: 1.43 MB / 1.146 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-05/1.138, allocations: 19.88 kB / 1.146 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005905/1.144, allocations: 3.369 MB / 1.149 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008394/1.145, allocations: 0.5905 MB / 1.149 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003749/1.145, allocations: 39.98 kB / 1.15 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002375/1.147, allocations: 351.4 kB / 1.15 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/1.148, allocations: 128.5 kB / 1.15 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/1.148, allocations: 67.95 kB / 1.15 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002852/1.151, allocations: 2.287 MB / 1.152 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/1.151, allocations: 4 kB / 1.152 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003966/1.155, allocations: 2.025 MB / 1.154 GB, free: 14.49 MB / 0.8262 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.006934/1.161, allocations: 4.32 MB / 1.158 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00719/1.169, allocations: 3.922 MB / 1.162 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/1.169, allocations: 0 / 1.162 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.002058/1.171, allocations: 1.061 MB / 1.163 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005661/1.176, allocations: 1.615 MB / 1.165 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2377/1.414, allocations: 33.56 MB / 1.198 GB, free: 343.9 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001505/1.416, allocations: 2.664 MB / 1.2 GB, free: 342.9 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.003926/1.42, allocations: 1.04 MB / 1.201 GB, free: 342.8 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001618/1.421, allocations: 1.747 MB / 1.203 GB, free: 341.4 MB / 0.8262 GB Notification: Performance of SimCode: time 5.51e-07/1.421, allocations: 0 / 1.203 GB, free: 341.4 MB / 0.8262 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).