Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="IBPSA_latest_IBPSA_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.001181/0.001181, allocations: 102.1 kB / 16.27 MB, free: 5.984 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.001226/0.001226, allocations: 192.7 kB / 17.2 MB, free: 5.613 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.229/1.229, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6769/0.6769, allocations: 122.9 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 67.88 kB / 0.4912 GB, free: 7.324 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2805, allocations: 77.92 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.5418/0.8223, allocations: 380.1 MB / 0.9384 GB, free: 10.39 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.05155/0.8738, allocations: 46.53 MB / 0.9839 GB, free: 11.72 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005388/0.8793, allocations: 179 kB / 0.9841 GB, free: 11.55 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.01397/0.8933, allocations: 8.583 MB / 0.9924 GB, free: 2.941 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.01703/0.9103, allocations: 7.331 MB / 0.9996 GB, free: 11.58 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.007683/0.918, allocations: 3.832 MB / 1.003 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01877/0.9368, allocations: 17.1 MB / 1.02 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00619/0.943, allocations: 5.586 MB / 1.025 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3237/1.267, allocations: 6.263 MB / 1.032 GB, free: 20.95 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007365/1.274, allocations: 3.707 MB / 1.035 GB, free: 20.95 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001298/1.275, allocations: 0.4921 MB / 1.036 GB, free: 20.95 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01066/1.286, allocations: 6.328 MB / 1.042 GB, free: 20.95 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001724/1.288, allocations: 1.988 MB / 1.044 GB, free: 20.95 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.003137/1.291, allocations: 3.134 MB / 1.047 GB, free: 20.16 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01076/1.302, allocations: 10.16 MB / 1.057 GB, free: 19.15 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/1.302, allocations: 5.625 kB / 1.057 GB, free: 19.15 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.232e-06/1.302, allocations: 0 / 1.057 GB, free: 19.15 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.972e-05/1.302, allocations: 0.9062 kB / 1.057 GB, free: 19.15 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: 864 * Number of variables: 864 Notification: Performance of Generate backend data structure: time 0.008994/1.311, allocations: 6.442 MB / 1.063 GB, free: 16.21 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/1.311, allocations: 9.75 kB / 1.063 GB, free: 16.21 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004865/1.311, allocations: 475.6 kB / 1.064 GB, free: 16.15 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01029/1.322, allocations: 2.01 MB / 1.066 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007562/1.329, allocations: 5.614 MB / 1.071 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00124/1.331, allocations: 0.591 MB / 1.072 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000416/1.331, allocations: 355.5 kB / 1.072 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006818/1.338, allocations: 4.533 MB / 1.076 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.518e-05/1.338, allocations: 5.156 kB / 1.076 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003112/1.338, allocations: 140.5 kB / 1.077 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-05/1.338, allocations: 135.5 kB / 1.077 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007426/1.346, allocations: 4 MB / 1.081 GB, free: 14.26 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.02022/1.366, allocations: 19.75 MB / 1.1 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003348/1.369, allocations: 1.764 MB / 1.102 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001791/1.371, allocations: 0.9204 MB / 1.102 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004942/1.372, allocations: 408.8 kB / 1.103 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002049/1.374, allocations: 1.066 MB / 1.104 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=127): time 2.755e-06/1.374, allocations: 6.969 kB / 1.104 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of matching and sorting (n=127): time 0.006617/1.38, allocations: 2.922 MB / 1.107 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/1.38, allocations: 147.6 kB / 1.107 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004773/1.385, allocations: 4.661 MB / 1.111 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001218/1.385, allocations: 54.95 kB / 1.111 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001242/1.387, allocations: 2.427 MB / 1.114 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002705/1.387, allocations: 477.3 kB / 1.114 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007509/1.388, allocations: 0.6786 MB / 1.115 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 2.891e-05/1.388, allocations: 301.1 kB / 1.115 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002575/1.39, allocations: 1.415 MB / 1.117 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003036/1.393, allocations: 2.545 MB / 1.119 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005276/1.398, allocations: 3.729 MB / 1.123 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/1.399, allocations: 11.62 kB / 1.123 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.007044/1.406, allocations: 4.332 MB / 1.127 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/1.406, allocations: 51.12 kB / 1.127 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.776e-05/1.406, allocations: 39.44 kB / 1.127 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.658e-05/1.406, allocations: 48.19 kB / 1.127 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002586/1.408, allocations: 0.7319 MB / 1.128 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-05/1.408, allocations: 71.25 kB / 1.128 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003584/1.412, allocations: 0.5831 MB / 1.128 GB, free: 12.36 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000203/1.412, allocations: 141.8 kB / 1.129 GB, free: 12.24 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004272/1.416, allocations: 2.558 MB / 1.131 GB, free: 10.57 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003587/1.42, allocations: 2.543 MB / 1.134 GB, free: 8.035 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005613/1.426, allocations: 3.743 MB / 1.137 GB, free: 4.871 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.339e-05/1.426, allocations: 12 kB / 1.137 GB, free: 4.859 MB / 0.7481 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.007647/1.433, allocations: 4.33 MB / 1.142 GB, free: 1.73 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/1.433, allocations: 49.67 kB / 1.142 GB, free: 1.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.932e-05/1.433, allocations: 32 kB / 1.142 GB, free: 1.648 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.879e-05/1.433, allocations: 55.94 kB / 1.142 GB, free: 1.594 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002955/1.436, allocations: 0.7325 MB / 1.142 GB, free: 0.9258 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.311e-05/1.436, allocations: 75.06 kB / 1.142 GB, free: 0.8672 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003586/1.44, allocations: 491 kB / 1.143 GB, free: 448 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001943/1.44, allocations: 141.9 kB / 1.143 GB, free: 328 kB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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 (352): * Single equations (assignments): 346 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 2 * 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.0004838/1.441, allocations: 362.2 kB / 1.143 GB, free: 76 kB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005379/1.441, allocations: 442.4 kB / 1.144 GB, free: 15.63 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005076/1.446, allocations: 2.319 MB / 1.146 GB, free: 13.97 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/1.446, allocations: 12 kB / 1.146 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/1.446, allocations: 3.984 kB / 1.146 GB, free: 13.95 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003974/1.45, allocations: 1.921 MB / 1.148 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/1.461, allocations: 6.706 MB / 1.155 GB, free: 7.371 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/1.461, allocations: 12 kB / 1.155 GB, free: 7.359 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00156/1.463, allocations: 326.5 kB / 1.155 GB, free: 7.062 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001887/1.463, allocations: 64.05 kB / 1.155 GB, free: 7.012 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.735e-05/1.463, allocations: 44.22 kB / 1.155 GB, free: 6.984 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/1.464, allocations: 1.537 MB / 1.156 GB, free: 5.445 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-05/1.464, allocations: 26.28 kB / 1.156 GB, free: 5.426 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006581/1.471, allocations: 3.386 MB / 1.16 GB, free: 2.176 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/1.472, allocations: 0.7294 MB / 1.16 GB, free: 1.422 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000476/1.472, allocations: 39.94 kB / 1.161 GB, free: 1.383 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002335/1.475, allocations: 203.8 kB / 1.161 GB, free: 1.184 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/1.475, allocations: 113.9 kB / 1.161 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/1.475, allocations: 75.95 kB / 1.161 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.004027/1.479, allocations: 3.113 MB / 1.164 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/1.479, allocations: 3.938 kB / 1.164 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004846/1.484, allocations: 2.303 MB / 1.166 GB, free: 11.6 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 4 (conPI.I.y,vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m) * 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 (125): * Single equations (assignments): 122 * 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.007884/1.492, allocations: 4.464 MB / 1.171 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.009967/1.502, allocations: 5.111 MB / 1.176 GB, free: 2.176 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/1.502, allocations: 4 kB / 1.176 GB, free: 2.172 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.002318/1.504, allocations: 1.063 MB / 1.177 GB, free: 1.141 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007409/1.512, allocations: 2.133 MB / 1.179 GB, free: 15.13 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05241/1.564, allocations: 40.64 MB / 1.218 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002498/1.567, allocations: 3.011 MB / 1.221 GB, free: 24 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.005028/1.572, allocations: 1.3 MB / 1.223 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002407/1.574, allocations: 2.096 MB / 1.225 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of SimCode: time 6.22e-07/1.574, allocations: 0 / 1.225 GB, free: 12.62 MB / 0.8419 GB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: IBPSA.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).