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.001055/0.001055, allocations: 107.3 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.001024/0.001024, allocations: 189.2 kB / 16.25 MB, free: 6.145 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.241/1.241, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6683/0.6683, allocations: 132.2 MB / 422.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 58.78 kB / 0.5014 GB, free: 9.016 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1223, allocations: 80.2 MB / 0.5797 GB, free: 9.035 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.7636/0.886, allocations: 375 MB / 0.9459 GB, free: 16.16 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03626/0.9223, allocations: 44.09 MB / 0.989 GB, free: 13.8 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004531/0.9268, allocations: 154.8 kB / 0.9891 GB, free: 13.8 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.004625/0.9315, allocations: 2.498 MB / 0.9916 GB, free: 12.57 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01233/0.9438, allocations: 6.825 MB / 0.9982 GB, free: 9.52 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.006076/0.9499, allocations: 3.459 MB / 1.002 GB, free: 7.52 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.008757/0.9587, allocations: 11.53 MB / 1.013 GB, free: 15.66 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005447/0.9642, allocations: 5.505 MB / 1.018 GB, free: 10.22 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009791/0.974, allocations: 6.409 MB / 1.025 GB, free: 4.816 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00505/0.979, allocations: 3.847 MB / 1.028 GB, free: 1.25 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0005664/0.9796, allocations: 500 kB / 1.029 GB, free: 0.7617 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009163/0.9888, allocations: 6.451 MB / 1.035 GB, free: 11.02 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001332/0.9901, allocations: 1.745 MB / 1.037 GB, free: 9.285 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002478/0.9926, allocations: 2.792 MB / 1.039 GB, free: 6.5 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.009639/1.002, allocations: 9.599 MB / 1.049 GB, free: 13.33 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/1.002, allocations: 0 / 1.049 GB, free: 13.33 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.253e-06/1.002, allocations: 0 / 1.049 GB, free: 13.33 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.143e-05/1.002, allocations: 0 / 1.049 GB, free: 13.33 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.007815/1.01, allocations: 5.666 MB / 1.054 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/1.01, allocations: 12.03 kB / 1.054 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004883/1.011, allocations: 474.5 kB / 1.055 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009288/1.02, allocations: 1.791 MB / 1.057 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006126/1.026, allocations: 3.588 MB / 1.06 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00142/1.028, allocations: 0.5902 MB / 1.061 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004721/1.028, allocations: 350.5 kB / 1.061 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007843/1.036, allocations: 4.495 MB / 1.065 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.633e-05/1.036, allocations: 0 / 1.065 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003033/1.036, allocations: 139.7 kB / 1.066 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/1.036, allocations: 134.5 kB / 1.066 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008/1.044, allocations: 3.976 MB / 1.07 GB, free: 7.992 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.0243/1.069, allocations: 18.55 MB / 1.088 GB, free: 4.246 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003396/1.072, allocations: 1.791 MB / 1.089 GB, free: 2.41 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001808/1.074, allocations: 0.9255 MB / 1.09 GB, free: 1.488 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005941/1.075, allocations: 415.7 kB / 1.091 GB, free: 1.016 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002165/1.077, allocations: 1.108 MB / 1.092 GB, free: 15.88 MB / 0.7637 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001091/1.078, allocations: 156.8 kB / 1.092 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=133): time 2.665e-06/1.078, allocations: 0 / 1.092 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of matching and sorting (n=133): time 0.006507/1.084, allocations: 2.881 MB / 1.095 GB, free: 12.82 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/1.084, allocations: 149.8 kB / 1.095 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003805/1.088, allocations: 3.382 MB / 1.098 GB, free: 9.238 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001292/1.088, allocations: 61.7 kB / 1.098 GB, free: 9.172 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.001403/1.09, allocations: 2.15 MB / 1.1 GB, free: 7.012 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.000351/1.09, allocations: 476.8 kB / 1.101 GB, free: 6.551 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006511/1.091, allocations: 495.8 kB / 1.101 GB, free: 6.059 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 7.986e-05/1.091, allocations: 305.1 kB / 1.102 GB, free: 5.758 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002348/1.093, allocations: 1.064 MB / 1.103 GB, free: 4.684 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002975/1.096, allocations: 2.121 MB / 1.105 GB, free: 2.055 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004825/1.101, allocations: 3.079 MB / 1.108 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.32e-05/1.101, allocations: 12 kB / 1.108 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006218/1.107, allocations: 3.393 MB / 1.111 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.544e-05/1.107, allocations: 53.62 kB / 1.111 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.788e-05/1.107, allocations: 32 kB / 1.111 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.758e-05/1.107, allocations: 47.94 kB / 1.111 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/1.11, allocations: 0.6363 MB / 1.112 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.015e-05/1.11, allocations: 63.78 kB / 1.112 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003378/1.113, allocations: 0.5873 MB / 1.112 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/1.113, allocations: 132 kB / 1.113 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003362/1.117, allocations: 1.968 MB / 1.114 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002869/1.12, allocations: 2.098 MB / 1.116 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004639/1.124, allocations: 3.02 MB / 1.119 GB, free: 1.52 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.181e-05/1.124, allocations: 8 kB / 1.119 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of matching and sorting (n=295) (initialization_lambda0): time 0.006097/1.13, allocations: 3.342 MB / 1.123 GB, free: 14.16 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.589e-05/1.13, allocations: 45.7 kB / 1.123 GB, free: 14.11 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.69e-05/1.131, allocations: 38.12 kB / 1.123 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.031e-05/1.131, allocations: 44.66 kB / 1.123 GB, free: 14.03 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00229/1.133, allocations: 0.6396 MB / 1.123 GB, free: 13.39 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.793e-05/1.133, allocations: 67.72 kB / 1.124 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003151/1.136, allocations: 0.5232 MB / 1.124 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001768/1.136, allocations: 127.8 kB / 1.124 GB, free: 12.68 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.0003974/1.137, allocations: 343.3 kB / 1.124 GB, free: 12.34 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003947/1.137, allocations: 363.4 kB / 1.125 GB, free: 11.98 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004555/1.142, allocations: 2.318 MB / 1.127 GB, free: 9.629 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/1.142, allocations: 12 kB / 1.127 GB, free: 9.617 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/1.142, allocations: 4 kB / 1.127 GB, free: 9.613 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003584/1.145, allocations: 1.944 MB / 1.129 GB, free: 7.578 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009628/1.155, allocations: 6.203 MB / 1.135 GB, free: 1.168 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/1.155, allocations: 12 kB / 1.135 GB, free: 1.156 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/1.156, allocations: 328.1 kB / 1.135 GB, free: 0.8359 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001879/1.157, allocations: 60.77 kB / 1.135 GB, free: 0.7734 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.891e-05/1.157, allocations: 47.97 kB / 1.135 GB, free: 0.7266 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/1.158, allocations: 1.547 MB / 1.137 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/1.158, allocations: 16 kB / 1.137 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005947/1.164, allocations: 3.393 MB / 1.14 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008385/1.165, allocations: 0.5941 MB / 1.141 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003526/1.165, allocations: 43.98 kB / 1.141 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002329/1.167, allocations: 315.5 kB / 1.141 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/1.167, allocations: 116.6 kB / 1.141 GB, free: 10.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/1.168, allocations: 67.95 kB / 1.141 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002808/1.17, allocations: 2.291 MB / 1.144 GB, free: 8.031 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.332e-06/1.17, allocations: 0 / 1.144 GB, free: 8.031 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003953/1.174, allocations: 2.036 MB / 1.146 GB, free: 5.988 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.006973/1.181, allocations: 4.323 MB / 1.15 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00818/1.19, allocations: 4.141 MB / 1.154 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/1.19, allocations: 0.8125 kB / 1.154 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.002111/1.192, allocations: 1.064 MB / 1.155 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005687/1.197, allocations: 1.701 MB / 1.157 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2384/1.436, allocations: 33.59 MB / 1.189 GB, free: 349.4 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001498/1.437, allocations: 2.66 MB / 1.192 GB, free: 348.4 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.003892/1.441, allocations: 1.064 MB / 1.193 GB, free: 348.4 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001478/1.443, allocations: 1.743 MB / 1.195 GB, free: 347 MB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/1.443, allocations: 2.781 kB / 1.195 GB, free: 347 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).