Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="IDEAS_dev_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.001404/0.001404, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001648/0.001648, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.345/1.345, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8778/0.8778, allocations: 135.1 MB / 425.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.72 kB / 0.505 GB, free: 5.523 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1397, allocations: 80.93 MB / 0.584 GB, free: 4.758 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.8171/0.9569, allocations: 375 MB / 0.9502 GB, free: 16.11 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03711/0.994, allocations: 44.07 MB / 0.9933 GB, free: 11.9 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00511/0.9991, allocations: 156.2 kB / 0.9934 GB, free: 11.9 MB / 0.67 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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-master/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.005478/1.005, allocations: 2.508 MB / 0.9959 GB, free: 10.66 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01324/1.018, allocations: 6.823 MB / 1.003 GB, free: 7.609 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.006455/1.024, allocations: 3.459 MB / 1.006 GB, free: 5.613 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.009796/1.034, allocations: 11.53 MB / 1.017 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006714/1.041, allocations: 5.509 MB / 1.023 GB, free: 6.973 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01101/1.052, allocations: 6.402 MB / 1.029 GB, free: 1.16 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005847/1.058, allocations: 3.848 MB / 1.033 GB, free: 13.6 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0007008/1.058, allocations: 0.4922 MB / 1.033 GB, free: 13.11 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01003/1.069, allocations: 6.445 MB / 1.039 GB, free: 7.363 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001488/1.07, allocations: 1.75 MB / 1.041 GB, free: 5.629 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002831/1.073, allocations: 2.783 MB / 1.044 GB, free: 2.852 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.01038/1.083, allocations: 9.596 MB / 1.053 GB, free: 9.684 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/1.083, allocations: 4 kB / 1.053 GB, free: 9.68 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.102e-06/1.083, allocations: 0 / 1.053 GB, free: 9.68 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.579e-05/1.083, allocations: 4 kB / 1.053 GB, free: 9.676 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.008403/1.092, allocations: 5.668 MB / 1.059 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/1.092, allocations: 12.03 kB / 1.059 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005106/1.092, allocations: 467.9 kB / 1.059 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00963/1.102, allocations: 1.798 MB / 1.061 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00584/1.108, allocations: 3.589 MB / 1.064 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001247/1.109, allocations: 0.5866 MB / 1.065 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000439/1.11, allocations: 351.8 kB / 1.065 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007348/1.117, allocations: 4.499 MB / 1.07 GB, free: 8.578 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.575e-05/1.117, allocations: 7.938 kB / 1.07 GB, free: 8.57 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002936/1.117, allocations: 137.7 kB / 1.07 GB, free: 8.438 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001133/1.117, allocations: 138.5 kB / 1.07 GB, free: 8.301 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007774/1.125, allocations: 3.972 MB / 1.074 GB, free: 4.32 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.02288/1.148, allocations: 18.54 MB / 1.092 GB, free: 0.5859 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003411/1.151, allocations: 1.798 MB / 1.094 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001822/1.153, allocations: 0.9242 MB / 1.095 GB, free: 13.83 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005816/1.154, allocations: 414.7 kB / 1.095 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002237/1.156, allocations: 1.093 MB / 1.096 GB, free: 12.23 MB / 0.7637 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001151/1.157, allocations: 168.7 kB / 1.096 GB, free: 12.07 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=133): time 2.795e-06/1.157, allocations: 0 / 1.096 GB, free: 12.07 MB / 0.7637 GB Notification: Performance of matching and sorting (n=133): time 0.006635/1.164, allocations: 2.881 MB / 1.099 GB, free: 9.16 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.821e-05/1.164, allocations: 145.8 kB / 1.099 GB, free: 8.988 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004036/1.168, allocations: 3.382 MB / 1.102 GB, free: 5.586 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001355/1.168, allocations: 57.7 kB / 1.103 GB, free: 5.523 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.00147/1.17, allocations: 2.156 MB / 1.105 GB, free: 3.355 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.000367/1.17, allocations: 471.8 kB / 1.105 GB, free: 2.898 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006664/1.171, allocations: 499.1 kB / 1.106 GB, free: 2.406 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.187e-05/1.171, allocations: 305.1 kB / 1.106 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002366/1.173, allocations: 1.064 MB / 1.107 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003176/1.176, allocations: 2.118 MB / 1.109 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004992/1.181, allocations: 3.095 MB / 1.112 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.441e-05/1.181, allocations: 11.94 kB / 1.112 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006932/1.188, allocations: 3.389 MB / 1.115 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.175e-05/1.188, allocations: 45.7 kB / 1.115 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.152e-05/1.188, allocations: 32 kB / 1.115 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.477e-05/1.189, allocations: 48 kB / 1.115 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002493/1.191, allocations: 0.6399 MB / 1.116 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.914e-05/1.191, allocations: 67.78 kB / 1.116 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003865/1.195, allocations: 0.5821 MB / 1.117 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001923/1.195, allocations: 128 kB / 1.117 GB, free: 5.914 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003857/1.199, allocations: 1.971 MB / 1.119 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003094/1.202, allocations: 2.094 MB / 1.121 GB, free: 1.332 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004969/1.207, allocations: 3.028 MB / 1.124 GB, free: 13.86 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.316e-05/1.207, allocations: 12 kB / 1.124 GB, free: 13.85 MB / 0.795 GB Notification: Performance of matching and sorting (n=295) (initialization_lambda0): time 0.006449/1.214, allocations: 3.342 MB / 1.127 GB, free: 10.49 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.588e-05/1.214, allocations: 52.34 kB / 1.127 GB, free: 10.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.393e-05/1.214, allocations: 32 kB / 1.127 GB, free: 10.4 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.471e-05/1.214, allocations: 48 kB / 1.127 GB, free: 10.36 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00237/1.216, allocations: 0.6323 MB / 1.128 GB, free: 9.723 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.311e-05/1.216, allocations: 63.73 kB / 1.128 GB, free: 9.66 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003439/1.22, allocations: 0.5236 MB / 1.128 GB, free: 9.137 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/1.22, allocations: 128 kB / 1.128 GB, free: 9.012 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.0004693/1.22, allocations: 347.3 kB / 1.129 GB, free: 8.664 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004281/1.221, allocations: 355.5 kB / 1.129 GB, free: 8.312 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004941/1.226, allocations: 2.314 MB / 1.131 GB, free: 5.965 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/1.226, allocations: 19.98 kB / 1.131 GB, free: 5.945 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/1.226, allocations: 0 / 1.131 GB, free: 5.945 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003725/1.229, allocations: 1.948 MB / 1.133 GB, free: 3.91 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/1.24, allocations: 6.203 MB / 1.139 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/1.24, allocations: 8 kB / 1.139 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/1.242, allocations: 331.8 kB / 1.14 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001978/1.242, allocations: 60.77 kB / 1.14 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/1.242, allocations: 39.98 kB / 1.14 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/1.243, allocations: 1.547 MB / 1.141 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/1.243, allocations: 15.94 kB / 1.141 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006291/1.249, allocations: 3.393 MB / 1.145 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/1.25, allocations: 0.5979 MB / 1.145 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003896/1.251, allocations: 36 kB / 1.145 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002407/1.253, allocations: 311.5 kB / 1.146 GB, free: 6.867 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/1.253, allocations: 120.6 kB / 1.146 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/1.254, allocations: 68.2 kB / 1.146 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.003082/1.257, allocations: 2.283 MB / 1.148 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/1.257, allocations: 0 / 1.148 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004415/1.261, allocations: 2.04 MB / 1.15 GB, free: 2.344 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.007359/1.268, allocations: 4.321 MB / 1.154 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00879/1.277, allocations: 4.143 MB / 1.158 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.277, allocations: 5.562 kB / 1.158 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.002216/1.279, allocations: 1.061 MB / 1.159 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006206/1.286, allocations: 1.702 MB / 1.161 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2649/1.551, allocations: 33.6 MB / 1.194 GB, free: 344.1 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001692/1.552, allocations: 2.663 MB / 1.196 GB, free: 343.1 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.00417/1.557, allocations: 1.06 MB / 1.197 GB, free: 343.1 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/1.558, allocations: 1.742 MB / 1.199 GB, free: 341.7 MB / 0.8262 GB Notification: Performance of SimCode: time 5.81e-07/1.558, allocations: 0 / 1.199 GB, free: 341.7 MB / 0.8262 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).