Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_8_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_8_Buildings_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.001097/0.001097, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008654/0.008654, allocations: 169.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.247/1.247, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.53/1.53, allocations: 292.7 MB / 0.5502 GB, free: 14.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004351/0.0004351, allocations: 16.25 kB / 0.6744 GB, free: 25.86 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1737, allocations: 116.3 MB / 0.788 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.6231/0.7968, allocations: 372.2 MB / 1.151 GB, free: 7.316 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0502/0.847, allocations: 47.12 MB / 1.198 GB, free: 8.078 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004484/0.8516, allocations: 151 kB / 1.198 GB, free: 7.93 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.005029/0.8566, allocations: 2.375 MB / 1.2 GB, free: 5.543 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01393/0.8706, allocations: 6.809 MB / 1.207 GB, free: 14.71 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.006523/0.8771, allocations: 3.408 MB / 1.21 GB, free: 11.33 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.01408/0.8912, allocations: 15.37 MB / 1.225 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004993/0.8962, allocations: 4.542 MB / 1.229 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00883/0.905, allocations: 5.389 MB / 1.235 GB, free: 1.895 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004672/0.9097, allocations: 3.392 MB / 1.238 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0003487/0.9101, allocations: 168 kB / 1.238 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01028/0.9203, allocations: 6.827 MB / 1.245 GB, free: 7.496 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.001435/0.9218, allocations: 1.343 MB / 1.246 GB, free: 6.148 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.002508/0.9243, allocations: 2.36 MB / 1.248 GB, free: 3.77 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.9365, allocations: 9.166 MB / 1.257 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.9365, allocations: 0 / 1.257 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.804e-06/0.9365, allocations: 0 / 1.257 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.935e-05/0.9366, allocations: 4 kB / 1.257 GB, free: 10.57 MB / 0.9669 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.007252/0.9439, allocations: 4.689 MB / 1.262 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.9439, allocations: 8.031 kB / 1.262 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005078/0.9444, allocations: 463.9 kB / 1.262 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009316/0.9538, allocations: 1.918 MB / 1.264 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005453/0.9592, allocations: 3.581 MB / 1.268 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001333/0.9606, allocations: 0.6304 MB / 1.268 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004447/0.961, allocations: 344 kB / 1.269 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007237/0.9683, allocations: 4.543 MB / 1.273 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.857e-05/0.9683, allocations: 11.94 kB / 1.273 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002933/0.9686, allocations: 136 kB / 1.273 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001045/0.9688, allocations: 134.5 kB / 1.273 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007808/0.9766, allocations: 4.058 MB / 1.277 GB, free: 5.773 MB / 0.9825 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.3152/1.292, allocations: 18.61 MB / 1.296 GB, free: 369.9 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003247/1.295, allocations: 1.815 MB / 1.297 GB, free: 369.7 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/1.297, allocations: 0.9286 MB / 1.298 GB, free: 369.5 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004962/1.297, allocations: 416.9 kB / 1.299 GB, free: 369.1 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002092/1.299, allocations: 1.108 MB / 1.3 GB, free: 368.8 MB / 0.9825 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001224/1.301, allocations: 149.8 kB / 1.3 GB, free: 368.7 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=133): time 2.725e-06/1.301, allocations: 0 / 1.3 GB, free: 368.7 MB / 0.9825 GB Notification: Performance of matching and sorting (n=133): time 0.006493/1.307, allocations: 2.903 MB / 1.303 GB, free: 367.7 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/1.307, allocations: 146 kB / 1.303 GB, free: 367.5 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004946/1.312, allocations: 3.371 MB / 1.306 GB, free: 366.4 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.000199/1.312, allocations: 61.3 kB / 1.306 GB, free: 366.3 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001569/1.314, allocations: 2.139 MB / 1.308 GB, free: 364.7 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003938/1.314, allocations: 482.5 kB / 1.309 GB, free: 364.3 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002752/1.315, allocations: 196.5 kB / 1.309 GB, free: 364.2 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 3.31e-05/1.315, allocations: 302.5 kB / 1.309 GB, free: 363.9 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00251/1.317, allocations: 1.054 MB / 1.31 GB, free: 363.6 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002766/1.32, allocations: 2.134 MB / 1.312 GB, free: 362 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004604/1.325, allocations: 3.092 MB / 1.315 GB, free: 360 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-05/1.325, allocations: 9.406 kB / 1.315 GB, free: 360 MB / 0.9825 GB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006641/1.331, allocations: 3.409 MB / 1.319 GB, free: 358.8 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003698/1.332, allocations: 1.049 MB / 1.32 GB, free: 357.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-05/1.332, allocations: 31.19 kB / 1.32 GB, free: 357.3 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.053e-05/1.332, allocations: 45.72 kB / 1.32 GB, free: 357.3 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002342/1.334, allocations: 0.6371 MB / 1.32 GB, free: 357.3 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.893e-05/1.334, allocations: 72.45 kB / 1.32 GB, free: 357.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004048/1.338, allocations: 0.5965 MB / 1.321 GB, free: 357.1 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001966/1.338, allocations: 129.4 kB / 1.321 GB, free: 357.1 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/1.338, allocations: 2.594 kB / 1.321 GB, free: 357.1 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005738/1.344, allocations: 3.013 MB / 1.324 GB, free: 356.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.159e-05/1.344, allocations: 31.28 kB / 1.324 GB, free: 356.1 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.692e-05/1.344, allocations: 44.03 kB / 1.324 GB, free: 356.1 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002157/1.346, allocations: 0.6374 MB / 1.325 GB, free: 355.9 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.212e-05/1.346, allocations: 63.38 kB / 1.325 GB, free: 355.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003341/1.35, allocations: 492.6 kB / 1.325 GB, free: 355.7 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/1.35, allocations: 123 kB / 1.325 GB, free: 355.7 MB / 0.9825 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.00159/1.352, allocations: 1.178 MB / 1.327 GB, free: 354.9 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003384/1.352, allocations: 353.7 kB / 1.327 GB, free: 354.7 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00415/1.356, allocations: 2.327 MB / 1.329 GB, free: 353.4 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/1.356, allocations: 15.86 kB / 1.329 GB, free: 353.4 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/1.356, allocations: 3.938 kB / 1.329 GB, free: 353.4 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003242/1.359, allocations: 1.96 MB / 1.331 GB, free: 352.2 MB / 0.9825 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.009421/1.369, allocations: 6.428 MB / 1.337 GB, free: 348.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/1.369, allocations: 11.44 kB / 1.337 GB, free: 348.1 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001361/1.37, allocations: 328.1 kB / 1.338 GB, free: 348 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001713/1.37, allocations: 55.14 kB / 1.338 GB, free: 348 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-05/1.37, allocations: 39.23 kB / 1.338 GB, free: 348 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007546/1.371, allocations: 1.432 MB / 1.339 GB, free: 346.6 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/1.371, allocations: 19.53 kB / 1.339 GB, free: 346.5 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005363/1.377, allocations: 3.382 MB / 1.343 GB, free: 344.6 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007855/1.377, allocations: 0.5939 MB / 1.343 GB, free: 344.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003167/1.378, allocations: 42.66 kB / 1.343 GB, free: 344.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002328/1.38, allocations: 364.3 kB / 1.344 GB, free: 343.9 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/1.38, allocations: 121.2 kB / 1.344 GB, free: 343.9 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-05/1.38, allocations: 59.56 kB / 1.344 GB, free: 343.8 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002501/1.383, allocations: 2.283 MB / 1.346 GB, free: 341.9 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.41e-07/1.383, allocations: 0 / 1.346 GB, free: 341.9 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.003965/1.387, allocations: 2.031 MB / 1.348 GB, free: 339.9 MB / 0.9825 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.006134/1.393, allocations: 4.326 MB / 1.352 GB, free: 335.5 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00688/1.4, allocations: 3.947 MB / 1.356 GB, free: 331.6 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.4, allocations: 4 kB / 1.356 GB, free: 331.6 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001872/1.402, allocations: 1.063 MB / 1.357 GB, free: 330.5 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01019/1.412, allocations: 1.626 MB / 1.359 GB, free: 328.9 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04479/1.457, allocations: 33.58 MB / 1.391 GB, free: 292.2 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001493/1.458, allocations: 2.661 MB / 1.394 GB, free: 289.6 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.003856/1.462, allocations: 1.046 MB / 1.395 GB, free: 288.5 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00156/1.464, allocations: 1.733 MB / 1.397 GB, free: 286.8 MB / 0.9825 GB Notification: Performance of SimCode: time 7.81e-07/1.464, allocations: 0 / 1.397 GB, free: 286.8 MB / 0.9825 GB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).