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.001543/0.001543, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001948/0.001949, allocations: 190.3 kB / 16.13 MB, free: 6.66 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.34/1.34, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7333/0.7333, allocations: 132.2 MB / 422.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 57.84 kB / 0.5012 GB, free: 9.105 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1389, allocations: 80.2 MB / 0.5795 GB, free: 9.125 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.7516/0.8905, allocations: 377.3 MB / 0.948 GB, free: 16.13 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03578/0.9263, allocations: 44.69 MB / 0.9916 GB, free: 12.84 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004411/0.9308, allocations: 154.1 kB / 0.9917 GB, free: 12.84 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.004529/0.9353, allocations: 2.381 MB / 0.9941 GB, free: 11.7 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.0119/0.9472, allocations: 6.811 MB / 1.001 GB, free: 8.594 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.005952/0.9532, allocations: 3.409 MB / 1.004 GB, free: 6.598 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01105/0.9643, allocations: 15.43 MB / 1.019 GB, free: 10.18 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004795/0.9691, allocations: 4.789 MB / 1.024 GB, free: 5.445 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008939/0.978, allocations: 5.643 MB / 1.029 GB, free: 0.5898 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004581/0.9826, allocations: 3.708 MB / 1.033 GB, free: 13.16 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0004548/0.9831, allocations: 266.5 kB / 1.033 GB, free: 12.9 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01002/0.9931, allocations: 6.929 MB / 1.04 GB, free: 6.676 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.00121/0.9943, allocations: 1.503 MB / 1.041 GB, free: 5.188 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002301/0.9966, allocations: 2.535 MB / 1.044 GB, free: 2.656 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.008693/1.005, allocations: 9.376 MB / 1.053 GB, free: 9.707 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/1.005, allocations: 0 / 1.053 GB, free: 9.707 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/1.005, allocations: 7.984 kB / 1.053 GB, free: 9.699 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.398e-05/1.005, allocations: 0 / 1.053 GB, free: 9.699 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.00779/1.013, allocations: 5.671 MB / 1.059 GB, free: 4 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/1.013, allocations: 12.03 kB / 1.059 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004739/1.014, allocations: 471.9 kB / 1.059 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00951/1.023, allocations: 1.787 MB / 1.061 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005438/1.029, allocations: 3.597 MB / 1.064 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001214/1.03, allocations: 0.5914 MB / 1.065 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004078/1.03, allocations: 347.8 kB / 1.065 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006899/1.037, allocations: 4.496 MB / 1.07 GB, free: 8.605 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.809e-05/1.037, allocations: 4 kB / 1.07 GB, free: 8.602 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000288/1.038, allocations: 142.6 kB / 1.07 GB, free: 8.465 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/1.038, allocations: 134.5 kB / 1.07 GB, free: 8.332 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007472/1.045, allocations: 3.972 MB / 1.074 GB, free: 4.352 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.02112/1.066, allocations: 18.54 MB / 1.092 GB, free: 0.6133 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003378/1.07, allocations: 1.805 MB / 1.094 GB, free: 14.76 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001767/1.071, allocations: 0.9254 MB / 1.095 GB, free: 13.84 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005483/1.072, allocations: 412 kB / 1.095 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002081/1.074, allocations: 1.103 MB / 1.096 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009143/1.075, allocations: 154.2 kB / 1.096 GB, free: 12.09 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=133): time 2.945e-06/1.075, allocations: 0 / 1.096 GB, free: 12.09 MB / 0.7637 GB Notification: Performance of matching and sorting (n=133): time 0.006329/1.081, allocations: 2.885 MB / 1.099 GB, free: 9.176 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/1.081, allocations: 149.8 kB / 1.099 GB, free: 9 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003733/1.085, allocations: 3.382 MB / 1.102 GB, free: 5.598 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001204/1.085, allocations: 61.69 kB / 1.102 GB, free: 5.531 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.001318/1.087, allocations: 2.146 MB / 1.105 GB, free: 3.375 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003276/1.087, allocations: 481 kB / 1.105 GB, free: 2.91 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006149/1.088, allocations: 495.9 kB / 1.105 GB, free: 2.418 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 6.964e-05/1.088, allocations: 305.1 kB / 1.106 GB, free: 2.117 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002294/1.09, allocations: 1.057 MB / 1.107 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002834/1.093, allocations: 2.125 MB / 1.109 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004619/1.097, allocations: 3.08 MB / 1.112 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/1.097, allocations: 8 kB / 1.112 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006006/1.103, allocations: 3.408 MB / 1.115 GB, free: 7.465 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.048e-05/1.104, allocations: 41.7 kB / 1.115 GB, free: 7.418 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/1.104, allocations: 32.66 kB / 1.115 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.628e-05/1.104, allocations: 44 kB / 1.115 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002291/1.106, allocations: 0.6474 MB / 1.116 GB, free: 6.695 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.21e-05/1.106, allocations: 59.8 kB / 1.116 GB, free: 6.637 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003152/1.109, allocations: 0.5918 MB / 1.117 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000173/1.109, allocations: 128 kB / 1.117 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003259/1.113, allocations: 1.964 MB / 1.119 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002736/1.115, allocations: 2.091 MB / 1.121 GB, free: 1.359 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004492/1.12, allocations: 3.028 MB / 1.124 GB, free: 13.89 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.028e-05/1.12, allocations: 16 kB / 1.124 GB, free: 13.87 MB / 0.795 GB Notification: Performance of matching and sorting (n=295) (initialization_lambda0): time 0.005887/1.126, allocations: 3.347 MB / 1.127 GB, free: 10.51 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/1.126, allocations: 45.7 kB / 1.127 GB, free: 10.46 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/1.126, allocations: 36.06 kB / 1.127 GB, free: 10.42 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.959e-05/1.126, allocations: 44 kB / 1.127 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002213/1.128, allocations: 0.6357 MB / 1.128 GB, free: 9.742 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.926e-05/1.128, allocations: 63.78 kB / 1.128 GB, free: 9.68 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002964/1.131, allocations: 0.5188 MB / 1.128 GB, free: 9.164 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/1.131, allocations: 122.9 kB / 1.128 GB, free: 9.047 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.0003494/1.132, allocations: 355.2 kB / 1.129 GB, free: 8.691 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003778/1.132, allocations: 355.5 kB / 1.129 GB, free: 8.34 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004457/1.136, allocations: 2.318 MB / 1.131 GB, free: 5.988 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/1.136, allocations: 12 kB / 1.131 GB, free: 5.977 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/1.136, allocations: 0 / 1.131 GB, free: 5.977 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003493/1.14, allocations: 1.952 MB / 1.133 GB, free: 3.934 MB / 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.01032/1.15, allocations: 6.415 MB / 1.139 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/1.15, allocations: 15.94 kB / 1.14 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/1.152, allocations: 328.3 kB / 1.14 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/1.152, allocations: 56.81 kB / 1.14 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.363e-05/1.152, allocations: 51.92 kB / 1.14 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009666/1.153, allocations: 1.421 MB / 1.141 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/1.153, allocations: 15.94 kB / 1.141 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005869/1.159, allocations: 3.377 MB / 1.145 GB, free: 7.762 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008245/1.16, allocations: 0.5863 MB / 1.145 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000365/1.16, allocations: 43.92 kB / 1.145 GB, free: 7.109 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002368/1.163, allocations: 355.5 kB / 1.146 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/1.163, allocations: 112.6 kB / 1.146 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/1.163, allocations: 67.97 kB / 1.146 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002704/1.166, allocations: 2.287 MB / 1.148 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/1.166, allocations: 0 / 1.148 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00386/1.169, allocations: 2.037 MB / 1.15 GB, free: 2.246 MB / 0.8106 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.006814/1.176, allocations: 4.312 MB / 1.154 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.007126/1.183, allocations: 3.917 MB / 1.158 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/1.183, allocations: 4.688 kB / 1.158 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.002076/1.186, allocations: 1.057 MB / 1.159 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005548/1.191, allocations: 1.624 MB / 1.161 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.232/1.423, allocations: 33.57 MB / 1.193 GB, free: 348.9 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00153/1.425, allocations: 2.66 MB / 1.196 GB, free: 347.9 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.003784/1.428, allocations: 1.041 MB / 1.197 GB, free: 347.9 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001524/1.43, allocations: 1.745 MB / 1.199 GB, free: 346.5 MB / 0.8262 GB Notification: Performance of SimCode: time 6.82e-07/1.43, allocations: 3.938 kB / 1.199 GB, free: 346.5 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).