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.001016/0.001016, 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.0009919/0.000992, allocations: 193.1 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.223/1.223, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7007/0.7007, allocations: 132.2 MB / 422.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 68.03 kB / 0.5019 GB, free: 3.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3142, allocations: 80.19 MB / 0.5802 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.5896/0.9038, allocations: 342.4 MB / 0.9146 GB, free: 1.074 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03488/0.9387, allocations: 36.54 MB / 0.9503 GB, free: 12.65 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004286/0.943, allocations: 136.1 kB / 0.9504 GB, free: 12.65 MB / 0.6544 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.005188/0.9483, allocations: 2.34 MB / 0.9527 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.01308/0.9614, allocations: 5.753 MB / 0.9583 GB, free: 9.055 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.00701/0.9684, allocations: 3.023 MB / 0.9612 GB, free: 6.977 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.009971/0.9784, allocations: 8.547 MB / 0.9696 GB, free: 15.95 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005899/0.9843, allocations: 4.189 MB / 0.9737 GB, free: 11.77 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009022/0.9933, allocations: 4.924 MB / 0.9785 GB, free: 7.688 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004516/0.9979, allocations: 2.694 MB / 0.9811 GB, free: 5.297 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0008932/0.9988, allocations: 372 kB / 0.9815 GB, free: 4.934 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009039/1.008, allocations: 5.121 MB / 0.9865 GB, free: 452 kB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001475/1.009, allocations: 1.268 MB / 0.9877 GB, free: 15.18 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003152/1.012, allocations: 2.079 MB / 0.9897 GB, free: 13.11 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.009718/1.022, allocations: 7.038 MB / 0.9966 GB, free: 6.363 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/1.022, allocations: 4 kB / 0.9966 GB, free: 6.359 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.163e-06/1.022, allocations: 0 / 0.9966 GB, free: 6.359 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001471/1.022, allocations: 0 / 0.9966 GB, free: 6.359 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.008035/1.03, allocations: 4.366 MB / 1.001 GB, free: 1.957 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/1.03, allocations: 16.03 kB / 1.001 GB, free: 1.941 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004034/1.031, allocations: 362.4 kB / 1.001 GB, free: 1.578 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007732/1.039, allocations: 1.376 MB / 1.003 GB, free: 204 kB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004776/1.043, allocations: 2.729 MB / 1.005 GB, free: 13.46 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001053/1.044, allocations: 452.4 kB / 1.006 GB, free: 13 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003487/1.045, allocations: 263.2 kB / 1.006 GB, free: 12.74 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005736/1.051, allocations: 3.361 MB / 1.009 GB, free: 9.277 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.497e-05/1.051, allocations: 3.938 kB / 1.009 GB, free: 9.273 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002385/1.051, allocations: 110.8 kB / 1.009 GB, free: 9.168 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.291e-05/1.051, allocations: 108.9 kB / 1.009 GB, free: 9.059 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006335/1.057, allocations: 2.978 MB / 1.012 GB, free: 6.066 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.02324/1.081, allocations: 14.37 MB / 1.026 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005497/1.086, allocations: 1.587 MB / 1.028 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002475/1.089, allocations: 0.6888 MB / 1.029 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005637/1.089, allocations: 302 kB / 1.029 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002805/1.092, allocations: 0.8176 MB / 1.03 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=104): time 4.037e-06/1.092, allocations: 0 / 1.03 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=104): time 0.009092/1.101, allocations: 2.143 MB / 1.032 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/1.101, allocations: 115.8 kB / 1.032 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006123/1.107, allocations: 2.628 MB / 1.034 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0002039/1.108, allocations: 57.7 kB / 1.035 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001952/1.11, allocations: 1.578 MB / 1.036 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005177/1.11, allocations: 377.1 kB / 1.036 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000881/1.111, allocations: 373.2 kB / 1.037 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001191/1.111, allocations: 305.1 kB / 1.037 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00337/1.114, allocations: 0.7855 MB / 1.038 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004154/1.119, allocations: 1.528 MB / 1.039 GB, free: 8.938 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004507/1.123, allocations: 2.198 MB / 1.041 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/1.123, allocations: 4 kB / 1.041 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of matching and sorting (n=219) (initialization): time 0.005698/1.129, allocations: 2.512 MB / 1.044 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.796e-05/1.129, allocations: 41.7 kB / 1.044 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/1.129, allocations: 23.94 kB / 1.044 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.639e-05/1.129, allocations: 32 kB / 1.044 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001956/1.131, allocations: 483.8 kB / 1.044 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.524e-05/1.131, allocations: 47.8 kB / 1.045 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002719/1.134, allocations: 382.4 kB / 1.045 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/1.134, allocations: 95.97 kB / 1.045 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003153/1.137, allocations: 1.459 MB / 1.046 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002543/1.14, allocations: 1.516 MB / 1.048 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003872/1.144, allocations: 2.165 MB / 1.05 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.107e-05/1.144, allocations: 11.94 kB / 1.05 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of matching and sorting (n=219) (initialization_lambda0): time 0.005425/1.149, allocations: 2.479 MB / 1.052 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/1.149, allocations: 41.69 kB / 1.052 GB, free: 10.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/1.149, allocations: 27.98 kB / 1.052 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-05/1.149, allocations: 28 kB / 1.053 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001926/1.151, allocations: 479.6 kB / 1.053 GB, free: 9.961 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.592e-05/1.151, allocations: 47.86 kB / 1.053 GB, free: 9.914 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002653/1.154, allocations: 340 kB / 1.053 GB, free: 9.586 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/1.154, allocations: 95.91 kB / 1.053 GB, free: 9.492 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * 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 (216): * Single equations (assignments): 213 * 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.0004147/1.154, allocations: 315.4 kB / 1.054 GB, free: 9.176 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004053/1.155, allocations: 272.5 kB / 1.054 GB, free: 8.906 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00385/1.159, allocations: 1.66 MB / 1.056 GB, free: 7.227 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.978e-06/1.159, allocations: 8 kB / 1.056 GB, free: 7.219 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/1.159, allocations: 0 / 1.056 GB, free: 7.219 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002902/1.162, allocations: 1.301 MB / 1.057 GB, free: 5.883 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007747/1.169, allocations: 4.306 MB / 1.061 GB, free: 1.438 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/1.169, allocations: 11.94 kB / 1.061 GB, free: 1.426 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/1.171, allocations: 240.3 kB / 1.061 GB, free: 1.191 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002046/1.171, allocations: 52.83 kB / 1.061 GB, free: 1.137 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.575e-05/1.171, allocations: 35.98 kB / 1.061 GB, free: 1.102 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/1.172, allocations: 1.535 MB / 1.063 GB, free: 15.42 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/1.172, allocations: 7.938 kB / 1.063 GB, free: 15.41 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005014/1.177, allocations: 2.529 MB / 1.065 GB, free: 12.79 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008342/1.178, allocations: 0.4973 MB / 1.066 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003606/1.178, allocations: 24 kB / 1.066 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00187/1.18, allocations: 143.9 kB / 1.066 GB, free: 12.11 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/1.18, allocations: 88.38 kB / 1.066 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/1.181, allocations: 51.97 kB / 1.066 GB, free: 11.97 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.002811/1.183, allocations: 1.791 MB / 1.068 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of sort global known variables: time 4.71e-07/1.183, allocations: 0 / 1.068 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003555/1.187, allocations: 1.527 MB / 1.069 GB, free: 8.648 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (103): * Single equations (assignments): 100 * 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.006071/1.193, allocations: 3.399 MB / 1.073 GB, free: 5.168 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.007354/1.2, allocations: 3.083 MB / 1.076 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/1.2, allocations: 4 kB / 1.076 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001805/1.202, allocations: 0.8053 MB / 1.077 GB, free: 1.246 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005776/1.208, allocations: 1.302 MB / 1.078 GB, free: 12 kB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03709/1.245, allocations: 23.19 MB / 1.1 GB, free: 6.785 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001905/1.247, allocations: 2.13 MB / 1.103 GB, free: 4.621 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00352/1.251, allocations: 0.7719 MB / 1.103 GB, free: 3.844 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001638/1.252, allocations: 1.265 MB / 1.105 GB, free: 2.582 MB / 0.795 GB Notification: Performance of SimCode: time 8.72e-07/1.252, allocations: 0 / 1.105 GB, free: 2.582 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).