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.001056/0.001056, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00118/0.00118, allocations: 192 kB / 16.14 MB, free: 6.707 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.315/1.315, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6907/0.6907, allocations: 132.2 MB / 422.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 63.28 kB / 0.5012 GB, free: 9.109 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.153, allocations: 80.2 MB / 0.5795 GB, free: 9.129 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.8177/0.9707, allocations: 340.4 MB / 0.9119 GB, free: 16.55 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03326/1.004, allocations: 36.75 MB / 0.9478 GB, free: 15.98 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003724/1.008, allocations: 123.8 kB / 0.948 GB, free: 15.98 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.00416/1.012, allocations: 1.986 MB / 0.9499 GB, free: 15.94 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01038/1.022, allocations: 5.387 MB / 0.9552 GB, free: 15.66 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.005913/1.028, allocations: 2.728 MB / 0.9578 GB, free: 15.59 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01178/1.04, allocations: 11.39 MB / 0.9689 GB, free: 14.84 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004052/1.044, allocations: 3.627 MB / 0.9725 GB, free: 13.56 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007558/1.052, allocations: 4.365 MB / 0.9767 GB, free: 11.91 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004466/1.056, allocations: 2.76 MB / 0.9794 GB, free: 10.63 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0004626/1.057, allocations: 192.8 kB / 0.9796 GB, free: 10.63 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008212/1.065, allocations: 5.784 MB / 0.9853 GB, free: 6.375 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0009012/1.066, allocations: 1.094 MB / 0.9863 GB, free: 5.309 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.002068/1.068, allocations: 1.896 MB / 0.9882 GB, free: 3.438 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.007654/1.076, allocations: 7.207 MB / 0.9952 GB, free: 12.68 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/1.076, allocations: 4 kB / 0.9952 GB, free: 12.67 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.042e-06/1.076, allocations: 0 / 0.9952 GB, free: 12.67 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.38e-05/1.076, allocations: 0 / 0.9952 GB, free: 12.67 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.006752/1.082, allocations: 4.382 MB / 0.9995 GB, free: 8.266 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/1.082, allocations: 12.03 kB / 0.9995 GB, free: 8.254 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003843/1.083, allocations: 354.4 kB / 0.9999 GB, free: 7.898 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007407/1.09, allocations: 1.379 MB / 1.001 GB, free: 6.52 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004622/1.095, allocations: 2.731 MB / 1.004 GB, free: 3.84 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009766/1.096, allocations: 453.9 kB / 1.004 GB, free: 3.375 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003306/1.096, allocations: 264.5 kB / 1.005 GB, free: 3.121 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005688/1.102, allocations: 3.378 MB / 1.008 GB, free: 15.65 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.847e-05/1.102, allocations: 6.344 kB / 1.008 GB, free: 15.65 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002412/1.102, allocations: 104 kB / 1.008 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.497e-05/1.102, allocations: 100.9 kB / 1.008 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005949/1.108, allocations: 3.003 MB / 1.011 GB, free: 12.44 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.01713/1.125, allocations: 14.05 MB / 1.025 GB, free: 13.6 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002938/1.128, allocations: 1.6 MB / 1.026 GB, free: 11.96 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001309/1.13, allocations: 0.6935 MB / 1.027 GB, free: 11.27 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003429/1.13, allocations: 299.2 kB / 1.027 GB, free: 10.93 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001578/1.132, allocations: 0.8323 MB / 1.028 GB, free: 10.08 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00078/1.132, allocations: 113.6 kB / 1.028 GB, free: 9.973 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=106): time 2.484e-06/1.132, allocations: 0 / 1.028 GB, free: 9.973 MB / 0.7169 GB Notification: Performance of matching and sorting (n=106): time 0.004719/1.137, allocations: 2.157 MB / 1.03 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/1.137, allocations: 111.8 kB / 1.03 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002878/1.14, allocations: 2.517 MB / 1.033 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.824e-05/1.14, allocations: 49.7 kB / 1.033 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001034/1.141, allocations: 1.592 MB / 1.034 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002579/1.142, allocations: 376.9 kB / 1.035 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004863/1.142, allocations: 375.1 kB / 1.035 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.352e-05/1.142, allocations: 311.1 kB / 1.035 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001753/1.144, allocations: 0.8002 MB / 1.036 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002128/1.146, allocations: 1.528 MB / 1.038 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003372/1.149, allocations: 2.212 MB / 1.04 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/1.149, allocations: 4 kB / 1.04 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of matching and sorting (n=221) (initialization): time 0.004693/1.154, allocations: 2.507 MB / 1.042 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.683e-05/1.154, allocations: 41.69 kB / 1.042 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.558e-05/1.154, allocations: 24 kB / 1.042 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.095e-05/1.154, allocations: 28 kB / 1.042 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001811/1.156, allocations: 486.2 kB / 1.043 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.227e-05/1.156, allocations: 44.89 kB / 1.043 GB, free: 10.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002763/1.159, allocations: 435.8 kB / 1.043 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/1.159, allocations: 95.97 kB / 1.043 GB, free: 9.832 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002702/1.162, allocations: 1.471 MB / 1.045 GB, free: 8.359 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002131/1.164, allocations: 1.518 MB / 1.046 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003344/1.167, allocations: 2.176 MB / 1.048 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.538e-06/1.167, allocations: 8 kB / 1.048 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of matching and sorting (n=221) (initialization_lambda0): time 0.004611/1.172, allocations: 2.487 MB / 1.051 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/1.172, allocations: 43.42 kB / 1.051 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/1.172, allocations: 20 kB / 1.051 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/1.172, allocations: 32 kB / 1.051 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001777/1.174, allocations: 485.8 kB / 1.051 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.949e-05/1.174, allocations: 43.19 kB / 1.052 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002646/1.176, allocations: 409.4 kB / 1.052 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/1.177, allocations: 98.55 kB / 1.052 GB, free: 0.6797 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.0003563/1.177, allocations: 309 kB / 1.052 GB, free: 412 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002936/1.177, allocations: 264.7 kB / 1.053 GB, free: 144 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003341/1.181, allocations: 1.67 MB / 1.054 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/1.181, allocations: 12 kB / 1.054 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/1.181, allocations: 3.938 kB / 1.054 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00251/1.183, allocations: 1.308 MB / 1.055 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007123/1.19, allocations: 4.449 MB / 1.06 GB, free: 8.543 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/1.19, allocations: 8 kB / 1.06 GB, free: 8.535 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/1.191, allocations: 244.6 kB / 1.06 GB, free: 8.309 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001826/1.192, allocations: 52.83 kB / 1.06 GB, free: 8.254 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.45e-05/1.192, allocations: 27.98 kB / 1.06 GB, free: 8.227 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009747/1.193, allocations: 1.444 MB / 1.062 GB, free: 6.66 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.193, allocations: 10.25 kB / 1.062 GB, free: 6.652 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004367/1.197, allocations: 2.555 MB / 1.064 GB, free: 4.004 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000987/1.198, allocations: 481.6 kB / 1.065 GB, free: 3.512 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003733/1.198, allocations: 24 kB / 1.065 GB, free: 3.488 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/1.2, allocations: 243.5 kB / 1.065 GB, free: 3.25 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/1.201, allocations: 94.44 kB / 1.065 GB, free: 3.164 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/1.201, allocations: 51.97 kB / 1.065 GB, free: 3.113 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002316/1.203, allocations: 1.703 MB / 1.067 GB, free: 1.41 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.51e-07/1.203, allocations: 0 / 1.067 GB, free: 1.41 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003564/1.207, allocations: 1.569 MB / 1.068 GB, free: 15.84 MB / 0.7637 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.005333/1.212, allocations: 3.433 MB / 1.071 GB, free: 12.34 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00576/1.218, allocations: 2.94 MB / 1.074 GB, free: 9.52 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/1.218, allocations: 0 / 1.074 GB, free: 9.52 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001595/1.219, allocations: 0.8286 MB / 1.075 GB, free: 8.711 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00459/1.224, allocations: 1.194 MB / 1.076 GB, free: 7.543 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03631/1.26, allocations: 23.8 MB / 1.1 GB, free: 13.87 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001454/1.262, allocations: 2.126 MB / 1.102 GB, free: 11.71 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.003165/1.265, allocations: 0.7674 MB / 1.102 GB, free: 10.94 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/1.266, allocations: 1.265 MB / 1.104 GB, free: 9.672 MB / 0.795 GB Notification: Performance of SimCode: time 8.22e-07/1.266, allocations: 4 kB / 1.104 GB, free: 9.668 MB / 0.795 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).