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.0008977/0.0008977, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005194/0.005194, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.259/1.259, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7121/0.7121, allocations: 132.3 MB / 423.8 MB, free: 2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002768/0.0002768, allocations: 8.625 kB / 0.5041 GB, free: 3.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3364, allocations: 81.57 MB / 0.5837 GB, free: 4.047 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.5985/0.935, allocations: 372 MB / 0.9471 GB, free: 300 kB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.04362/0.9787, allocations: 44.18 MB / 0.9902 GB, free: 488 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004823/0.9835, allocations: 152.9 kB / 0.9903 GB, free: 396 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.005191/0.9887, allocations: 2.374 MB / 0.9927 GB, free: 14.75 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01474/1.003, allocations: 6.814 MB / 0.9993 GB, free: 9.227 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.007191/1.011, allocations: 3.417 MB / 1.003 GB, free: 6.191 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01485/1.026, allocations: 15.42 MB / 1.018 GB, free: 7.125 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005426/1.031, allocations: 4.564 MB / 1.022 GB, free: 2.566 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00928/1.04, allocations: 5.395 MB / 1.027 GB, free: 13.53 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004986/1.045, allocations: 3.408 MB / 1.031 GB, free: 10.4 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0003611/1.046, allocations: 171.9 kB / 1.031 GB, free: 10.23 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01041/1.056, allocations: 6.823 MB / 1.038 GB, free: 4.117 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001271/1.057, allocations: 1.339 MB / 1.039 GB, free: 2.789 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002315/1.06, allocations: 2.36 MB / 1.041 GB, free: 440 kB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.009604/1.069, allocations: 9.172 MB / 1.05 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/1.069, allocations: 0 / 1.05 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.272e-06/1.069, allocations: 0 / 1.05 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.066e-05/1.069, allocations: 0 / 1.05 GB, free: 7.684 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.007552/1.077, allocations: 4.703 MB / 1.055 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/1.077, allocations: 12.03 kB / 1.055 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005488/1.078, allocations: 467.9 kB / 1.055 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01047/1.088, allocations: 1.909 MB / 1.057 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006028/1.094, allocations: 3.606 MB / 1.061 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001444/1.095, allocations: 0.6304 MB / 1.061 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004979/1.096, allocations: 347.8 kB / 1.062 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007859/1.104, allocations: 4.542 MB / 1.066 GB, free: 7.348 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.859e-05/1.104, allocations: 4 kB / 1.066 GB, free: 7.344 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003271/1.104, allocations: 135.3 kB / 1.066 GB, free: 7.215 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/1.104, allocations: 138.5 kB / 1.066 GB, free: 7.078 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008522/1.113, allocations: 4.069 MB / 1.07 GB, free: 3 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.02355/1.136, allocations: 18.62 MB / 1.088 GB, free: 15.19 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003779/1.14, allocations: 1.817 MB / 1.09 GB, free: 13.32 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002064/1.142, allocations: 0.9333 MB / 1.091 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006248/1.143, allocations: 410.1 kB / 1.091 GB, free: 11.92 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002347/1.145, allocations: 1.112 MB / 1.093 GB, free: 10.79 MB / 0.7637 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001025/1.146, allocations: 150.2 kB / 1.093 GB, free: 10.64 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=133): time 2.766e-06/1.146, allocations: 0 / 1.093 GB, free: 10.64 MB / 0.7637 GB Notification: Performance of matching and sorting (n=133): time 0.007197/1.154, allocations: 2.897 MB / 1.096 GB, free: 7.711 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/1.154, allocations: 149.8 kB / 1.096 GB, free: 7.531 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004238/1.158, allocations: 3.378 MB / 1.099 GB, free: 4.133 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001405/1.158, allocations: 61.7 kB / 1.099 GB, free: 4.066 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.00154/1.16, allocations: 2.155 MB / 1.101 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003645/1.16, allocations: 479 kB / 1.102 GB, free: 1.438 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002591/1.16, allocations: 198.2 kB / 1.102 GB, free: 1.238 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.283e-05/1.16, allocations: 313.1 kB / 1.102 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2277/1.388, allocations: 1.045 MB / 1.103 GB, free: 331.3 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003621/1.392, allocations: 2.126 MB / 1.105 GB, free: 330 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005254/1.397, allocations: 3.094 MB / 1.108 GB, free: 328.6 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.052e-05/1.397, allocations: 9.188 kB / 1.108 GB, free: 328.6 MB / 0.7637 GB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007566/1.405, allocations: 3.413 MB / 1.112 GB, free: 327.6 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003636/1.405, allocations: 1.043 MB / 1.113 GB, free: 326.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.774e-05/1.405, allocations: 31.97 kB / 1.113 GB, free: 326.3 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.698e-05/1.405, allocations: 43.88 kB / 1.113 GB, free: 326.3 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002595/1.408, allocations: 0.6435 MB / 1.113 GB, free: 326.2 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.754e-05/1.408, allocations: 67.34 kB / 1.113 GB, free: 326.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004214/1.412, allocations: 0.5854 MB / 1.114 GB, free: 326.1 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002037/1.412, allocations: 125.5 kB / 1.114 GB, free: 326.1 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 7.384e-06/1.412, allocations: 11.5 kB / 1.114 GB, free: 326.1 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006437/1.419, allocations: 3.006 MB / 1.117 GB, free: 325.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.565e-05/1.419, allocations: 35.75 kB / 1.117 GB, free: 325.1 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.123e-05/1.419, allocations: 46.62 kB / 1.117 GB, free: 325.1 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002544/1.421, allocations: 0.6355 MB / 1.118 GB, free: 325.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.428e-05/1.421, allocations: 63.28 kB / 1.118 GB, free: 325.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003642/1.425, allocations: 494.3 kB / 1.118 GB, free: 325 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/1.425, allocations: 122.9 kB / 1.118 GB, free: 325 MB / 0.7637 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.001933/1.427, allocations: 1.177 MB / 1.119 GB, free: 324.4 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004276/1.428, allocations: 354.4 kB / 1.12 GB, free: 324.4 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005033/1.433, allocations: 2.328 MB / 1.122 GB, free: 323.6 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/1.433, allocations: 17.59 kB / 1.122 GB, free: 323.5 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/1.433, allocations: 1.156 kB / 1.122 GB, free: 323.5 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003933/1.437, allocations: 1.957 MB / 1.124 GB, free: 322.6 MB / 0.7637 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.01086/1.447, allocations: 6.435 MB / 1.13 GB, free: 319.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/1.447, allocations: 11.88 kB / 1.13 GB, free: 319.8 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/1.449, allocations: 332 kB / 1.131 GB, free: 319.8 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001938/1.449, allocations: 59.38 kB / 1.131 GB, free: 319.8 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.295e-05/1.449, allocations: 46.84 kB / 1.131 GB, free: 319.7 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007939/1.45, allocations: 1.425 MB / 1.132 GB, free: 318.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/1.45, allocations: 19.88 kB / 1.132 GB, free: 318.4 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005895/1.456, allocations: 3.384 MB / 1.135 GB, free: 316.8 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008732/1.457, allocations: 0.5986 MB / 1.136 GB, free: 316.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003521/1.457, allocations: 35.72 kB / 1.136 GB, free: 316.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002585/1.46, allocations: 365.7 kB / 1.136 GB, free: 316.3 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/1.46, allocations: 117.9 kB / 1.137 GB, free: 316.3 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/1.46, allocations: 70.77 kB / 1.137 GB, free: 316.3 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.002694/1.463, allocations: 2.285 MB / 1.139 GB, free: 315.1 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/1.463, allocations: 2.297 kB / 1.139 GB, free: 315.1 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004209/1.467, allocations: 2.036 MB / 1.141 GB, free: 314.8 MB / 0.7637 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.006726/1.474, allocations: 4.331 MB / 1.145 GB, free: 312.1 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.007794/1.482, allocations: 3.943 MB / 1.149 GB, free: 309.2 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/1.482, allocations: 4 kB / 1.149 GB, free: 309.2 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.002142/1.484, allocations: 1.07 MB / 1.15 GB, free: 308.2 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01137/1.495, allocations: 1.603 MB / 1.151 GB, free: 306.6 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04746/1.543, allocations: 33.69 MB / 1.184 GB, free: 269.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001607/1.544, allocations: 2.661 MB / 1.187 GB, free: 267.1 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.004091/1.548, allocations: 1.042 MB / 1.188 GB, free: 266.1 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001681/1.55, allocations: 1.745 MB / 1.19 GB, free: 264.4 MB / 0.7637 GB Notification: Performance of SimCode: time 4.5e-07/1.55, allocations: 0 / 1.19 GB, free: 264.4 MB / 0.7637 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).