Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="IDEAS_IDEAS_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="IDEAS_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.001559/0.001559, 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.001304/0.001304, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.22/1.22, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6963/0.6963, allocations: 132.2 MB / 422.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 68.14 kB / 0.5019 GB, free: 3.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3366, allocations: 80.2 MB / 0.5802 GB, free: 4.574 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.5981/0.9347, allocations: 379.2 MB / 0.9505 GB, free: 15.17 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.04662/0.9813, allocations: 44.42 MB / 0.9939 GB, free: 4.293 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004762/0.9861, allocations: 177.3 kB / 0.9941 GB, free: 4.176 MB / 0.67 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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/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.00574/0.9919, allocations: 2.817 MB / 0.9968 GB, free: 2.18 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.0153/1.007, allocations: 7.269 MB / 1.004 GB, free: 11.34 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.007711/1.015, allocations: 3.753 MB / 1.008 GB, free: 7.621 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.01193/1.027, allocations: 11.51 MB / 1.019 GB, free: 12.07 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00693/1.034, allocations: 5.555 MB / 1.024 GB, free: 6.438 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01097/1.045, allocations: 6.353 MB / 1.03 GB, free: 64 kB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005746/1.051, allocations: 3.624 MB / 1.034 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.001114/1.052, allocations: 496 kB / 1.034 GB, free: 11.96 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01086/1.063, allocations: 6.147 MB / 1.04 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.001908/1.065, allocations: 1.722 MB / 1.042 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.003879/1.068, allocations: 2.776 MB / 1.045 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01075/1.079, allocations: 9.17 MB / 1.054 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/1.079, allocations: 4 kB / 1.054 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.142e-06/1.079, allocations: 0 / 1.054 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.715e-05/1.079, allocations: 0 / 1.054 GB, free: 8.09 MB / 0.7325 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.00848/1.088, allocations: 5.656 MB / 1.059 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/1.088, allocations: 8.031 kB / 1.059 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005089/1.088, allocations: 467.9 kB / 1.06 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009816/1.098, allocations: 1.789 MB / 1.062 GB, free: 72 kB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005884/1.104, allocations: 3.593 MB / 1.065 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001366/1.105, allocations: 0.5914 MB / 1.066 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004451/1.106, allocations: 348 kB / 1.066 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007378/1.113, allocations: 4.491 MB / 1.07 GB, free: 6.855 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.442e-05/1.113, allocations: 7.938 kB / 1.07 GB, free: 6.848 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003034/1.114, allocations: 140 kB / 1.071 GB, free: 6.711 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001116/1.114, allocations: 138.5 kB / 1.071 GB, free: 6.574 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008234/1.122, allocations: 3.929 MB / 1.074 GB, free: 2.637 MB / 0.7481 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.02397/1.146, allocations: 19.01 MB / 1.093 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003741/1.15, allocations: 1.778 MB / 1.095 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002088/1.152, allocations: 0.9176 MB / 1.096 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006174/1.152, allocations: 409.9 kB / 1.096 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002325/1.155, allocations: 1.073 MB / 1.097 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=129): time 2.865e-06/1.155, allocations: 0 / 1.097 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of matching and sorting (n=129): time 0.007456/1.162, allocations: 2.846 MB / 1.1 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/1.162, allocations: 149.8 kB / 1.1 GB, free: 6.879 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004284/1.167, allocations: 3.499 MB / 1.103 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001249/1.167, allocations: 57.7 kB / 1.104 GB, free: 3.301 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.001515/1.168, allocations: 2.149 MB / 1.106 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003579/1.169, allocations: 465.5 kB / 1.106 GB, free: 0.668 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006497/1.169, allocations: 491.8 kB / 1.107 GB, free: 184 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.008e-05/1.169, allocations: 301.1 kB / 1.107 GB, free: 15.88 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002602/1.172, allocations: 1.056 MB / 1.108 GB, free: 14.82 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003289/1.175, allocations: 2.106 MB / 1.11 GB, free: 12.2 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005319/1.181, allocations: 3.064 MB / 1.113 GB, free: 8.691 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.454e-05/1.181, allocations: 12 kB / 1.113 GB, free: 8.68 MB / 0.795 GB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006913/1.188, allocations: 3.381 MB / 1.116 GB, free: 5.281 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.496e-05/1.188, allocations: 45.64 kB / 1.116 GB, free: 5.23 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.888e-05/1.188, allocations: 32.88 kB / 1.116 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.228e-05/1.188, allocations: 44 kB / 1.116 GB, free: 5.156 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002515/1.19, allocations: 0.6396 MB / 1.117 GB, free: 4.516 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-05/1.19, allocations: 67.73 kB / 1.117 GB, free: 4.449 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003103/1.193, allocations: 490.2 kB / 1.117 GB, free: 3.969 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/1.194, allocations: 128 kB / 1.118 GB, free: 3.844 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003669/1.197, allocations: 1.957 MB / 1.12 GB, free: 1.879 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.2355/1.433, allocations: 2.081 MB / 1.122 GB, free: 359 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005974/1.439, allocations: 3.004 MB / 1.124 GB, free: 357.7 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.309e-05/1.439, allocations: 9.281 kB / 1.124 GB, free: 357.7 MB / 0.795 GB Notification: Performance of matching and sorting (n=291) (initialization_lambda0): time 0.007626/1.447, allocations: 3.319 MB / 1.128 GB, free: 357.2 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/1.447, allocations: 49.78 kB / 1.128 GB, free: 357.1 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.673e-05/1.447, allocations: 40.34 kB / 1.128 GB, free: 357.1 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.402e-05/1.447, allocations: 44.41 kB / 1.128 GB, free: 357.1 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002539/1.449, allocations: 0.6226 MB / 1.128 GB, free: 357.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.799e-05/1.449, allocations: 64.59 kB / 1.129 GB, free: 357.1 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003299/1.453, allocations: 421.6 kB / 1.129 GB, free: 357 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001884/1.453, allocations: 126.6 kB / 1.129 GB, free: 357 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.0004747/1.453, allocations: 340.3 kB / 1.129 GB, free: 356.7 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000426/1.454, allocations: 365.2 kB / 1.13 GB, free: 356.7 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005211/1.459, allocations: 2.289 MB / 1.132 GB, free: 355.9 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/1.459, allocations: 12.88 kB / 1.132 GB, free: 355.9 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/1.459, allocations: 1.156 kB / 1.132 GB, free: 355.9 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004042/1.463, allocations: 1.919 MB / 1.134 GB, free: 355 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/1.474, allocations: 6.145 MB / 1.14 GB, free: 352.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/1.474, allocations: 8.875 kB / 1.14 GB, free: 352.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/1.475, allocations: 319.1 kB / 1.14 GB, free: 352.3 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002119/1.476, allocations: 57.3 kB / 1.14 GB, free: 352.3 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.82e-05/1.476, allocations: 45.8 kB / 1.14 GB, free: 352.2 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008959/1.477, allocations: 1.55 MB / 1.142 GB, free: 350.8 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/1.477, allocations: 14.47 kB / 1.142 GB, free: 350.8 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006688/1.483, allocations: 3.342 MB / 1.145 GB, free: 349.3 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009859/1.484, allocations: 0.6241 MB / 1.146 GB, free: 348.9 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003896/1.485, allocations: 40.23 kB / 1.146 GB, free: 348.9 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002162/1.487, allocations: 178.9 kB / 1.146 GB, free: 348.8 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/1.487, allocations: 114.8 kB / 1.146 GB, free: 348.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/1.487, allocations: 60.38 kB / 1.146 GB, free: 348.8 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.003342/1.491, allocations: 2.375 MB / 1.148 GB, free: 348 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.8e-07/1.491, allocations: 0 / 1.148 GB, free: 348 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.004089/1.495, allocations: 2 MB / 1.15 GB, free: 347.7 MB / 0.795 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.006689/1.501, allocations: 4.283 MB / 1.154 GB, free: 345.6 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.008292/1.51, allocations: 4.079 MB / 1.158 GB, free: 344.3 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/1.51, allocations: 6.406 kB / 1.158 GB, free: 344.3 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.002165/1.512, allocations: 1.043 MB / 1.159 GB, free: 343.9 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00607/1.518, allocations: 1.73 MB / 1.161 GB, free: 343.3 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03803/1.556, allocations: 32.66 MB / 1.193 GB, free: 311 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/1.558, allocations: 2.658 MB / 1.196 GB, free: 308.3 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.004331/1.562, allocations: 1.062 MB / 1.197 GB, free: 307.3 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001581/1.563, allocations: 1.729 MB / 1.198 GB, free: 305.5 MB / 0.795 GB Notification: Performance of SimCode: time 5.31e-07/1.564, allocations: 0 / 1.198 GB, free: 305.5 MB / 0.795 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).