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.001031/0.001031, 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.001056/0.001056, allocations: 196.3 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7181/0.7181, allocations: 132.2 MB / 422.6 MB, free: 1.832 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001229, allocations: 68.58 kB / 0.5019 GB, free: 3.801 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3403, allocations: 80.19 MB / 0.5802 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.6203/0.9606, allocations: 379.3 MB / 0.9506 GB, free: 15.19 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.04805/1.009, allocations: 44.41 MB / 0.9939 GB, free: 4.254 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005402/1.014, allocations: 175.4 kB / 0.9941 GB, free: 4.141 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.006592/1.021, allocations: 2.815 MB / 0.9968 GB, free: 2.145 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01684/1.038, allocations: 7.277 MB / 1.004 GB, free: 11.31 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.008245/1.046, allocations: 3.746 MB / 1.008 GB, free: 7.602 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.01322/1.059, allocations: 11.51 MB / 1.019 GB, free: 12.05 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006922/1.066, allocations: 5.558 MB / 1.024 GB, free: 6.414 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01137/1.077, allocations: 6.349 MB / 1.03 GB, free: 44 kB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005682/1.083, allocations: 3.63 MB / 1.034 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.000788/1.084, allocations: 496 kB / 1.034 GB, free: 11.94 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01076/1.095, allocations: 6.151 MB / 1.04 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.001704/1.096, allocations: 1.725 MB / 1.042 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.003184/1.1, allocations: 2.772 MB / 1.045 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01234/1.112, allocations: 9.173 MB / 1.054 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/1.112, allocations: 0 / 1.054 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.583e-06/1.112, allocations: 0 / 1.054 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001027/1.112, allocations: 4 kB / 1.054 GB, free: 8.059 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.00982/1.122, allocations: 5.65 MB / 1.059 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/1.122, allocations: 8.031 kB / 1.059 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005724/1.123, allocations: 475.8 kB / 1.06 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01025/1.133, allocations: 1.785 MB / 1.062 GB, free: 40 kB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006686/1.14, allocations: 3.593 MB / 1.065 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001454/1.141, allocations: 0.5953 MB / 1.066 GB, free: 11.76 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004796/1.141, allocations: 340 kB / 1.066 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008064/1.15, allocations: 4.495 MB / 1.07 GB, free: 6.824 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.234e-05/1.15, allocations: 8 kB / 1.07 GB, free: 6.816 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003102/1.15, allocations: 136 kB / 1.071 GB, free: 6.684 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/1.15, allocations: 138.5 kB / 1.071 GB, free: 6.547 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008478/1.159, allocations: 3.933 MB / 1.074 GB, free: 2.605 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.02511/1.184, allocations: 19.01 MB / 1.093 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003906/1.188, allocations: 1.774 MB / 1.095 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002079/1.19, allocations: 0.9137 MB / 1.096 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000627/1.19, allocations: 406 kB / 1.096 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002371/1.193, allocations: 1.081 MB / 1.097 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=129): time 2.504e-06/1.193, allocations: 0 / 1.097 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of matching and sorting (n=129): time 0.0076/1.2, allocations: 2.846 MB / 1.1 GB, free: 7.027 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.344e-05/1.2, allocations: 149.8 kB / 1.1 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004638/1.205, allocations: 3.499 MB / 1.103 GB, free: 3.336 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001484/1.205, allocations: 61.7 kB / 1.104 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.001633/1.207, allocations: 2.149 MB / 1.106 GB, free: 1.098 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003816/1.207, allocations: 465.6 kB / 1.106 GB, free: 0.6367 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006629/1.208, allocations: 491.8 kB / 1.107 GB, free: 152 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.178e-05/1.208, allocations: 301.1 kB / 1.107 GB, free: 15.85 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002658/1.211, allocations: 1.052 MB / 1.108 GB, free: 14.79 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003313/1.214, allocations: 2.106 MB / 1.11 GB, free: 12.17 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005373/1.219, allocations: 3.068 MB / 1.113 GB, free: 8.66 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/1.219, allocations: 12 kB / 1.113 GB, free: 8.648 MB / 0.795 GB Notification: Performance of matching and sorting (n=291) (initialization): time 0.007276/1.227, allocations: 3.382 MB / 1.116 GB, free: 5.25 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.668e-05/1.227, allocations: 45.64 kB / 1.116 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.044e-05/1.227, allocations: 32 kB / 1.116 GB, free: 5.168 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.907e-05/1.227, allocations: 48 kB / 1.116 GB, free: 5.121 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002563/1.229, allocations: 0.632 MB / 1.117 GB, free: 4.488 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.778e-05/1.229, allocations: 63.8 kB / 1.117 GB, free: 4.426 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003261/1.233, allocations: 494.2 kB / 1.117 GB, free: 3.941 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/1.233, allocations: 128 kB / 1.118 GB, free: 3.816 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004066/1.237, allocations: 1.957 MB / 1.12 GB, free: 1.852 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.2362/1.473, allocations: 2.081 MB / 1.122 GB, free: 357.9 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005667/1.479, allocations: 3.006 MB / 1.124 GB, free: 356.7 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.029e-05/1.479, allocations: 9.438 kB / 1.124 GB, free: 356.7 MB / 0.795 GB Notification: Performance of matching and sorting (n=291) (initialization_lambda0): time 0.00775/1.487, allocations: 3.316 MB / 1.128 GB, free: 356.1 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.937e-05/1.487, allocations: 46.58 kB / 1.128 GB, free: 356 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.751e-05/1.487, allocations: 39.16 kB / 1.128 GB, free: 356 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.064e-05/1.487, allocations: 44.75 kB / 1.128 GB, free: 356 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00261/1.49, allocations: 0.629 MB / 1.128 GB, free: 356 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.577e-05/1.49, allocations: 66.31 kB / 1.129 GB, free: 356 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003552/1.493, allocations: 418.6 kB / 1.129 GB, free: 355.9 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000211/1.493, allocations: 126.4 kB / 1.129 GB, free: 355.9 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.0004889/1.494, allocations: 344.6 kB / 1.129 GB, free: 355.6 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004733/1.494, allocations: 362.3 kB / 1.13 GB, free: 355.6 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005268/1.5, allocations: 2.291 MB / 1.132 GB, free: 354.8 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/1.5, allocations: 13.84 kB / 1.132 GB, free: 354.8 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/1.5, allocations: 1.75 kB / 1.132 GB, free: 354.8 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00399/1.504, allocations: 1.919 MB / 1.134 GB, free: 353.9 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/1.514, allocations: 6.134 MB / 1.14 GB, free: 351.2 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/1.514, allocations: 8.938 kB / 1.14 GB, free: 351.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00173/1.516, allocations: 320.1 kB / 1.14 GB, free: 351.2 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/1.516, allocations: 59.25 kB / 1.14 GB, free: 351.2 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.785e-05/1.516, allocations: 41.8 kB / 1.14 GB, free: 351.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008898/1.517, allocations: 1.559 MB / 1.142 GB, free: 349.7 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/1.517, allocations: 14.56 kB / 1.142 GB, free: 349.7 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007856/1.525, allocations: 3.341 MB / 1.145 GB, free: 348.2 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001735/1.527, allocations: 0.6197 MB / 1.146 GB, free: 347.8 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006327/1.528, allocations: 38.05 kB / 1.146 GB, free: 347.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003193/1.531, allocations: 179.9 kB / 1.146 GB, free: 347.8 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002857/1.531, allocations: 115.9 kB / 1.146 GB, free: 347.7 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000184/1.531, allocations: 63.3 kB / 1.146 GB, free: 347.7 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.003503/1.535, allocations: 2.373 MB / 1.148 GB, free: 346.9 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.4e-07/1.535, allocations: 0 / 1.148 GB, free: 346.9 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.004122/1.539, allocations: 1.997 MB / 1.15 GB, free: 346.6 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.0067/1.546, allocations: 4.291 MB / 1.154 GB, free: 344.5 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.008341/1.554, allocations: 4.075 MB / 1.158 GB, free: 343.2 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.554, allocations: 1.625 kB / 1.158 GB, free: 343.2 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.002077/1.556, allocations: 1.049 MB / 1.159 GB, free: 342.9 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006116/1.562, allocations: 1.742 MB / 1.161 GB, free: 342.2 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03955/1.602, allocations: 32.64 MB / 1.193 GB, free: 309.8 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001698/1.603, allocations: 2.658 MB / 1.196 GB, free: 307.1 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.005912/1.609, allocations: 1.063 MB / 1.197 GB, free: 306 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002386/1.612, allocations: 1.729 MB / 1.198 GB, free: 304.3 MB / 0.795 GB Notification: Performance of SimCode: time 1.062e-06/1.612, allocations: 4 kB / 1.198 GB, free: 304.3 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).