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.00108/0.00108, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.261/1.261, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8807/0.8807, allocations: 135.1 MB / 425.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 68.52 kB / 0.5054 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1305, allocations: 80.93 MB / 0.5845 GB, free: 4.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.835/0.9655, allocations: 379.2 MB / 0.9548 GB, free: 16.25 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0419/1.007, allocations: 44.4 MB / 0.9982 GB, free: 10.09 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006385/1.014, allocations: 174.4 kB / 0.9984 GB, free: 10.09 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.006567/1.02, allocations: 2.818 MB / 1.001 GB, free: 8.793 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01529/1.036, allocations: 7.272 MB / 1.008 GB, free: 5.582 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.007714/1.044, allocations: 3.758 MB / 1.012 GB, free: 2.477 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01325/1.057, allocations: 11.51 MB / 1.023 GB, free: 9.02 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007768/1.065, allocations: 5.565 MB / 1.029 GB, free: 3.5 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01182/1.076, allocations: 6.361 MB / 1.035 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006219/1.083, allocations: 3.604 MB / 1.038 GB, free: 10.62 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.001621/1.084, allocations: 500 kB / 1.039 GB, free: 10.14 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01243/1.097, allocations: 6.156 MB / 1.045 GB, free: 4.664 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.002461/1.099, allocations: 1.722 MB / 1.046 GB, free: 2.953 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.004954/1.104, allocations: 2.775 MB / 1.049 GB, free: 188 kB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.01429/1.118, allocations: 9.168 MB / 1.058 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/1.118, allocations: 0 / 1.058 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.502e-06/1.119, allocations: 0 / 1.058 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.000208/1.119, allocations: 0 / 1.058 GB, free: 7.383 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.01085/1.13, allocations: 5.651 MB / 1.064 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/1.13, allocations: 15.97 kB / 1.064 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005512/1.13, allocations: 475.7 kB / 1.064 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01041/1.141, allocations: 1.795 MB / 1.066 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006978/1.148, allocations: 3.576 MB / 1.069 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001431/1.149, allocations: 0.5836 MB / 1.07 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005927/1.15, allocations: 351 kB / 1.07 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007933/1.158, allocations: 4.494 MB / 1.075 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.284e-05/1.158, allocations: 0 / 1.075 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003207/1.158, allocations: 148 kB / 1.075 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/1.158, allocations: 134.4 kB / 1.075 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008496/1.167, allocations: 3.929 MB / 1.079 GB, free: 2.094 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.0252/1.192, allocations: 19.01 MB / 1.097 GB, free: 13.87 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003832/1.196, allocations: 1.768 MB / 1.099 GB, free: 12.07 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002024/1.198, allocations: 0.9099 MB / 1.1 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000611/1.198, allocations: 407.3 kB / 1.1 GB, free: 10.69 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002317/1.201, allocations: 1.081 MB / 1.101 GB, free: 9.582 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=129): time 2.946e-06/1.201, allocations: 0 / 1.101 GB, free: 9.582 MB / 0.7637 GB Notification: Performance of matching and sorting (n=129): time 0.007562/1.208, allocations: 2.85 MB / 1.104 GB, free: 6.703 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/1.208, allocations: 141.8 kB / 1.104 GB, free: 6.535 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004669/1.213, allocations: 3.511 MB / 1.108 GB, free: 3.008 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001832/1.213, allocations: 61.81 kB / 1.108 GB, free: 2.941 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.001615/1.215, allocations: 2.146 MB / 1.11 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003928/1.215, allocations: 464.4 kB / 1.11 GB, free: 344 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006729/1.216, allocations: 492.2 kB / 1.111 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.666e-05/1.216, allocations: 309.1 kB / 1.111 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002654/1.219, allocations: 1.045 MB / 1.112 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003291/1.222, allocations: 2.119 MB / 1.114 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00551/1.227, allocations: 3.073 MB / 1.117 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.475e-05/1.228, allocations: 8 kB / 1.117 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=291) (initialization): time 0.007566/1.235, allocations: 3.374 MB / 1.12 GB, free: 4.949 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.983e-05/1.235, allocations: 52.03 kB / 1.121 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/1.235, allocations: 32 kB / 1.121 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.655e-05/1.235, allocations: 44 kB / 1.121 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002541/1.238, allocations: 0.6319 MB / 1.121 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.098e-05/1.238, allocations: 63.78 kB / 1.121 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003506/1.241, allocations: 0.4978 MB / 1.122 GB, free: 3.629 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001983/1.242, allocations: 128 kB / 1.122 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004196/1.246, allocations: 1.96 MB / 1.124 GB, free: 1.535 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003265/1.249, allocations: 2.079 MB / 1.126 GB, free: 14.94 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005382/1.254, allocations: 3.006 MB / 1.129 GB, free: 11.49 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.993e-05/1.254, allocations: 9.094 kB / 1.129 GB, free: 11.48 MB / 0.795 GB Notification: Performance of matching and sorting (n=291) (initialization_lambda0): time 0.007413/1.262, allocations: 3.317 MB / 1.132 GB, free: 8.152 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.549e-05/1.262, allocations: 50.58 kB / 1.132 GB, free: 8.098 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.37e-05/1.262, allocations: 32 kB / 1.132 GB, free: 8.066 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.715e-05/1.262, allocations: 51.98 kB / 1.132 GB, free: 8.016 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/1.265, allocations: 0.624 MB / 1.133 GB, free: 7.391 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.127e-05/1.265, allocations: 71.72 kB / 1.133 GB, free: 7.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003434/1.268, allocations: 418.5 kB / 1.133 GB, free: 6.914 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001848/1.268, allocations: 120 kB / 1.133 GB, free: 6.797 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 143 * 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 (287): * Single equations (assignments): 283 * 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.0004854/1.269, allocations: 351.2 kB / 1.134 GB, free: 6.445 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005796/1.269, allocations: 355.5 kB / 1.134 GB, free: 6.094 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005298/1.275, allocations: 2.294 MB / 1.136 GB, free: 3.77 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/1.275, allocations: 12 kB / 1.136 GB, free: 3.758 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/1.275, allocations: 7.875 kB / 1.136 GB, free: 3.75 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004123/1.279, allocations: 1.917 MB / 1.138 GB, free: 1.746 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/1.29, allocations: 6.14 MB / 1.144 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/1.29, allocations: 8 kB / 1.144 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/1.292, allocations: 316.2 kB / 1.144 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002065/1.292, allocations: 56.81 kB / 1.144 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.862e-05/1.292, allocations: 39.98 kB / 1.145 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/1.293, allocations: 1.551 MB / 1.146 GB, free: 9.297 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.117e-05/1.293, allocations: 31.92 kB / 1.146 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007143/1.3, allocations: 3.343 MB / 1.149 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001562/1.302, allocations: 0.6133 MB / 1.15 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007268/1.303, allocations: 39.98 kB / 1.15 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00263/1.305, allocations: 183.8 kB / 1.15 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/1.305, allocations: 112.6 kB / 1.15 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/1.306, allocations: 67.89 kB / 1.15 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.004126/1.31, allocations: 2.375 MB / 1.153 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.61e-07/1.31, allocations: 0 / 1.153 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00467/1.314, allocations: 1.997 MB / 1.155 GB, free: 376 kB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (127): * Single equations (assignments): 124 * 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.007825/1.322, allocations: 4.277 MB / 1.159 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.009405/1.332, allocations: 4.09 MB / 1.163 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 9.337e-06/1.332, allocations: 4 kB / 1.163 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.002425/1.334, allocations: 1.041 MB / 1.164 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007101/1.341, allocations: 1.724 MB / 1.165 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2539/1.595, allocations: 32.64 MB / 1.197 GB, free: 344.4 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001735/1.597, allocations: 2.655 MB / 1.2 GB, free: 343.4 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.004318/1.601, allocations: 1.059 MB / 1.201 GB, free: 343.4 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001713/1.603, allocations: 1.734 MB / 1.203 GB, free: 342 MB / 0.8262 GB Notification: Performance of SimCode: time 8.11e-07/1.603, allocations: 3.781 kB / 1.203 GB, free: 342 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).