Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust.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.ThermalZoneHVACNoExhaust,fileNamePrefix="IDEAS_IDEAS_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACNoExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust,fileNamePrefix="IDEAS_IDEAS_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACNoExhaust",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.0009776/0.0009778, 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.0009708/0.0009708, allocations: 189.3 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.234/1.234, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6836/0.6836, allocations: 132.2 MB / 422.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 59.91 kB / 0.5014 GB, free: 8.992 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1141, allocations: 80.2 MB / 0.5797 GB, free: 9.012 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.7463/0.8604, allocations: 338.5 MB / 0.9103 GB, free: 16.47 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03323/0.8937, allocations: 36.25 MB / 0.9457 GB, free: 16.11 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003406/0.8971, allocations: 125 kB / 0.9458 GB, free: 16.11 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.004061/0.9012, allocations: 2.085 MB / 0.9478 GB, free: 16.07 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01002/0.9112, allocations: 5.397 MB / 0.9531 GB, free: 15.8 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.00533/0.9166, allocations: 2.793 MB / 0.9558 GB, free: 15.71 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.007147/0.9237, allocations: 8.561 MB / 0.9642 GB, free: 15.66 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003688/0.9274, allocations: 4.146 MB / 0.9682 GB, free: 14.99 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006939/0.9344, allocations: 4.942 MB / 0.9731 GB, free: 13.23 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003313/0.9377, allocations: 2.857 MB / 0.9759 GB, free: 11.84 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0003744/0.9381, allocations: 373.1 kB / 0.9762 GB, free: 11.84 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006913/0.945, allocations: 5.375 MB / 0.9815 GB, free: 9.52 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0007541/0.9458, allocations: 1.279 MB / 0.9827 GB, free: 8.27 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.9472, allocations: 2.081 MB / 0.9847 GB, free: 6.215 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.006043/0.9533, allocations: 7.372 MB / 0.9919 GB, free: 15.29 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.9533, allocations: 0 / 0.9919 GB, free: 15.29 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.352e-06/0.9533, allocations: 0 / 0.9919 GB, free: 15.29 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 3.161e-05/0.9533, allocations: 4 kB / 0.9919 GB, free: 15.28 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 645 * Number of variables: 645 Notification: Performance of Generate backend data structure: time 0.006069/0.9594, allocations: 4.386 MB / 0.9962 GB, free: 10.87 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.9595, allocations: 12.03 kB / 0.9962 GB, free: 10.86 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003711/0.9598, allocations: 360.4 kB / 0.9966 GB, free: 10.5 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007084/0.9669, allocations: 1.372 MB / 0.9979 GB, free: 9.125 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004219/0.9712, allocations: 2.734 MB / 1.001 GB, free: 6.445 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009314/0.9721, allocations: 449.9 kB / 1.001 GB, free: 5.984 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003226/0.9724, allocations: 265.5 kB / 1.001 GB, free: 5.73 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005404/0.9778, allocations: 3.36 MB / 1.005 GB, free: 2.277 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/0.9779, allocations: 6.344 kB / 1.005 GB, free: 2.273 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002231/0.9781, allocations: 110.8 kB / 1.005 GB, free: 2.168 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.639e-05/0.9782, allocations: 104.9 kB / 1.005 GB, free: 2.062 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005728/0.984, allocations: 3 MB / 1.008 GB, free: 15.06 MB / 0.7012 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.01645/1, allocations: 14.05 MB / 1.021 GB, free: 224 kB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002945/1.003, allocations: 1.595 MB / 1.023 GB, free: 14.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/1.005, allocations: 0.6932 MB / 1.024 GB, free: 13.9 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003463/1.005, allocations: 305.8 kB / 1.024 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00155/1.007, allocations: 0.8288 MB / 1.025 GB, free: 12.71 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006354/1.007, allocations: 114.7 kB / 1.025 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=106): time 2.504e-06/1.007, allocations: 0 / 1.025 GB, free: 12.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=106): time 0.004726/1.012, allocations: 2.158 MB / 1.027 GB, free: 10.41 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/1.012, allocations: 119.8 kB / 1.027 GB, free: 10.27 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002838/1.015, allocations: 2.513 MB / 1.03 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001019/1.015, allocations: 53.7 kB / 1.03 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001032/1.016, allocations: 1.598 MB / 1.031 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002813/1.016, allocations: 380.7 kB / 1.032 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004976/1.017, allocations: 371.1 kB / 1.032 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.989e-05/1.017, allocations: 301.1 kB / 1.032 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001754/1.019, allocations: 0.7933 MB / 1.033 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00221/1.021, allocations: 1.531 MB / 1.034 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003478/1.024, allocations: 2.211 MB / 1.037 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/1.024, allocations: 11.88 kB / 1.037 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of matching and sorting (n=221) (initialization): time 0.004638/1.029, allocations: 2.511 MB / 1.039 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.669e-05/1.029, allocations: 42.94 kB / 1.039 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/1.029, allocations: 24 kB / 1.039 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.217e-05/1.029, allocations: 28 kB / 1.039 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/1.031, allocations: 485.4 kB / 1.04 GB, free: 13 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.203e-05/1.031, allocations: 49.55 kB / 1.04 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002528/1.034, allocations: 434.9 kB / 1.04 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001398/1.034, allocations: 95.97 kB / 1.04 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00251/1.036, allocations: 1.467 MB / 1.042 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002138/1.038, allocations: 1.521 MB / 1.043 GB, free: 9.137 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003339/1.042, allocations: 2.167 MB / 1.045 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.646e-06/1.042, allocations: 8 kB / 1.045 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of matching and sorting (n=221) (initialization_lambda0): time 0.004513/1.046, allocations: 2.496 MB / 1.048 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/1.046, allocations: 41.7 kB / 1.048 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/1.046, allocations: 20 kB / 1.048 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/1.046, allocations: 32 kB / 1.048 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/1.048, allocations: 481.4 kB / 1.048 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.656e-05/1.048, allocations: 44.89 kB / 1.048 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002396/1.051, allocations: 410.3 kB / 1.049 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/1.051, allocations: 94.78 kB / 1.049 GB, free: 3.297 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * 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 (218): * Single equations (assignments): 215 * Array equations: 2 * 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.0002927/1.051, allocations: 302.1 kB / 1.049 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002963/1.051, allocations: 268.7 kB / 1.049 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003252/1.055, allocations: 1.672 MB / 1.051 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.497e-06/1.055, allocations: 12 kB / 1.051 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/1.055, allocations: 0 / 1.051 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002531/1.057, allocations: 1.312 MB / 1.052 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006493/1.064, allocations: 4.352 MB / 1.056 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/1.064, allocations: 8 kB / 1.056 GB, free: 11.26 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/1.065, allocations: 243.7 kB / 1.057 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000175/1.065, allocations: 50.33 kB / 1.057 GB, free: 10.98 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.537e-05/1.065, allocations: 27.98 kB / 1.057 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/1.066, allocations: 1.541 MB / 1.058 GB, free: 9.281 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/1.066, allocations: 14.5 kB / 1.058 GB, free: 9.27 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004309/1.07, allocations: 2.562 MB / 1.061 GB, free: 6.613 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006286/1.071, allocations: 481.6 kB / 1.061 GB, free: 6.121 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002787/1.071, allocations: 31.98 kB / 1.061 GB, free: 6.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001814/1.073, allocations: 231.6 kB / 1.061 GB, free: 5.863 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/1.073, allocations: 94.7 kB / 1.062 GB, free: 5.777 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-05/1.073, allocations: 51.97 kB / 1.062 GB, free: 5.727 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0021/1.076, allocations: 1.703 MB / 1.063 GB, free: 4.023 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.61e-07/1.076, allocations: 0 / 1.063 GB, free: 4.023 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003179/1.079, allocations: 1.572 MB / 1.065 GB, free: 2.449 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (105): * Single equations (assignments): 102 * 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.00522/1.084, allocations: 3.433 MB / 1.068 GB, free: 14.95 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.005887/1.09, allocations: 3.092 MB / 1.071 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.09, allocations: 4 kB / 1.071 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001529/1.091, allocations: 0.8295 MB / 1.072 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00427/1.096, allocations: 1.254 MB / 1.073 GB, free: 9.984 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03497/1.131, allocations: 23.79 MB / 1.096 GB, free: 320 kB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001507/1.132, allocations: 2.131 MB / 1.099 GB, free: 14.15 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.002909/1.135, allocations: 0.7674 MB / 1.099 GB, free: 13.38 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001364/1.137, allocations: 1.265 MB / 1.101 GB, free: 12.11 MB / 0.795 GB Notification: Performance of SimCode: time 1.523e-06/1.137, allocations: 0 / 1.101 GB, free: 12.11 MB / 0.795 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).