Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACNoExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust,fileNamePrefix="BuildingSystems_BuildingSystems_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.001315/0.001315, 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.001277/0.001278, allocations: 198.1 kB / 16.54 MB, free: 6.672 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.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002515/0.002515, allocations: 282.8 kB / 290.7 MB, free: 2.039 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.15/1.15, allocations: 178.6 MB / 0.5073 GB, free: 4.605 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002787/0.002787, allocations: 96.05 kB / 0.6065 GB, free: 24.75 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1539, allocations: 89.15 MB / 0.6936 GB, free: 4.246 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.6273/0.7813, allocations: 342.9 MB / 1.028 GB, free: 4.172 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.4164/1.198, allocations: 38.36 MB / 1.066 GB, free: 16.3 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004456/1.202, allocations: 139 kB / 1.066 GB, free: 16.3 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.01076/1.213, allocations: 5.621 MB / 1.072 GB, free: 16.29 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.01393/1.227, allocations: 5.807 MB / 1.077 GB, free: 16.12 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.007641/1.235, allocations: 3.056 MB / 1.08 GB, free: 16.05 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0149/1.25, allocations: 11.34 MB / 1.091 GB, free: 16.02 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005666/1.255, allocations: 4.196 MB / 1.095 GB, free: 15.48 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009956/1.265, allocations: 4.876 MB / 1.1 GB, free: 15.41 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005175/1.27, allocations: 2.75 MB / 1.103 GB, free: 15.3 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0007265/1.271, allocations: 372.8 kB / 1.103 GB, free: 15.3 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009905/1.281, allocations: 5.296 MB / 1.108 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.00142/1.282, allocations: 1.39 MB / 1.11 GB, free: 15.09 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002786/1.285, allocations: 2.252 MB / 1.112 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01037/1.296, allocations: 7.577 MB / 1.119 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/1.296, allocations: 3.812 kB / 1.119 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.523e-06/1.296, allocations: 0 / 1.119 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001049/1.296, allocations: 0 / 1.119 GB, free: 13.54 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 649 * Number of variables: 649 Notification: Performance of Generate backend data structure: time 0.0081/1.304, allocations: 4.779 MB / 1.124 GB, free: 11.3 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/1.304, allocations: 9.719 kB / 1.124 GB, free: 11.3 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004174/1.304, allocations: 364.7 kB / 1.124 GB, free: 11.25 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00856/1.313, allocations: 1.483 MB / 1.126 GB, free: 10.98 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006902/1.32, allocations: 3.727 MB / 1.129 GB, free: 9.75 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0011/1.321, allocations: 461.2 kB / 1.13 GB, free: 9.578 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006928/1.322, allocations: 264.6 kB / 1.13 GB, free: 9.57 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00642/1.328, allocations: 3.388 MB / 1.133 GB, free: 8.586 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.988e-05/1.328, allocations: 0 / 1.133 GB, free: 8.586 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002763/1.329, allocations: 104.9 kB / 1.133 GB, free: 8.586 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.805e-05/1.329, allocations: 112.8 kB / 1.134 GB, free: 8.57 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006485/1.335, allocations: 3.006 MB / 1.137 GB, free: 8.008 MB / 0.7637 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.02005/1.355, allocations: 14.75 MB / 1.151 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003673/1.359, allocations: 1.58 MB / 1.152 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001606/1.361, allocations: 0.6942 MB / 1.153 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004413/1.361, allocations: 296.9 kB / 1.153 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00189/1.363, allocations: 0.8104 MB / 1.154 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=103): time 2.736e-06/1.363, allocations: 3.938 kB / 1.154 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of matching and sorting (n=103): time 0.006485/1.369, allocations: 2.196 MB / 1.156 GB, free: 7.645 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.975e-05/1.37, allocations: 119.8 kB / 1.157 GB, free: 7.504 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005536/1.375, allocations: 3.202 MB / 1.16 GB, free: 4.312 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0002742/1.375, allocations: 52.2 kB / 1.16 GB, free: 4.258 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.001787/1.377, allocations: 1.728 MB / 1.161 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004619/1.378, allocations: 362.9 kB / 1.162 GB, free: 2.172 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007679/1.378, allocations: 484.1 kB / 1.162 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001253/1.379, allocations: 301.1 kB / 1.162 GB, free: 1.398 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002463/1.381, allocations: 0.9579 MB / 1.163 GB, free: 448 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003236/1.384, allocations: 1.732 MB / 1.165 GB, free: 14.38 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004912/1.389, allocations: 2.532 MB / 1.168 GB, free: 11.65 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.579e-05/1.389, allocations: 8 kB / 1.168 GB, free: 11.64 MB / 0.795 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.007099/1.396, allocations: 2.969 MB / 1.17 GB, free: 8.801 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.668e-05/1.396, allocations: 51.09 kB / 1.171 GB, free: 8.746 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.79e-05/1.396, allocations: 24 kB / 1.171 GB, free: 8.723 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.948e-05/1.397, allocations: 36 kB / 1.171 GB, free: 8.688 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002237/1.399, allocations: 0.5181 MB / 1.171 GB, free: 8.203 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.853e-05/1.399, allocations: 47.19 kB / 1.171 GB, free: 8.164 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003491/1.402, allocations: 425.8 kB / 1.172 GB, free: 7.742 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002046/1.403, allocations: 99.97 kB / 1.172 GB, free: 7.645 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004121/1.407, allocations: 1.762 MB / 1.173 GB, free: 5.875 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003194/1.41, allocations: 1.731 MB / 1.175 GB, free: 3.82 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004966/1.415, allocations: 2.53 MB / 1.178 GB, free: 1.078 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.238e-05/1.415, allocations: 4 kB / 1.178 GB, free: 1.074 MB / 0.795 GB Notification: Performance of matching and sorting (n=282) (initialization_lambda0): time 0.007069/1.422, allocations: 2.977 MB / 1.18 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.171e-05/1.422, allocations: 45.69 kB / 1.18 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.174e-05/1.422, allocations: 20 kB / 1.18 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.372e-05/1.422, allocations: 32 kB / 1.181 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002221/1.424, allocations: 0.525 MB / 1.181 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.546e-05/1.424, allocations: 44.14 kB / 1.181 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003444/1.428, allocations: 368.3 kB / 1.181 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/1.428, allocations: 99.97 kB / 1.182 GB, free: 13.14 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * 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 (247): * Single equations (assignments): 243 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0005334/1.429, allocations: 321.8 kB / 1.182 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005171/1.429, allocations: 312 kB / 1.182 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004494/1.434, allocations: 1.69 MB / 1.184 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/1.434, allocations: 8 kB / 1.184 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/1.434, allocations: 4 kB / 1.184 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003264/1.437, allocations: 1.297 MB / 1.185 GB, free: 9.543 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00966/1.447, allocations: 4.568 MB / 1.19 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/1.447, allocations: 8.594 kB / 1.19 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001353/1.448, allocations: 251.8 kB / 1.19 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002193/1.448, allocations: 48.83 kB / 1.19 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.789e-05/1.448, allocations: 31.98 kB / 1.19 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001438/1.45, allocations: 1.533 MB / 1.191 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-05/1.45, allocations: 19.02 kB / 1.191 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005989/1.456, allocations: 2.521 MB / 1.194 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/1.457, allocations: 0.5519 MB / 1.194 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004315/1.458, allocations: 31.98 kB / 1.194 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002048/1.46, allocations: 151.9 kB / 1.195 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/1.46, allocations: 82.5 kB / 1.195 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/1.46, allocations: 55.97 kB / 1.195 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.004088/1.464, allocations: 2.164 MB / 1.197 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.4e-07/1.464, allocations: 0 / 1.197 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.004851/1.469, allocations: 1.698 MB / 1.198 GB, free: 11.58 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 (conPI.I.y,vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m) * 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 (102): * Single equations (assignments): 99 * 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.007326/1.476, allocations: 3.541 MB / 1.202 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.008855/1.485, allocations: 3.594 MB / 1.205 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/1.485, allocations: 0.625 kB / 1.205 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.002092/1.487, allocations: 0.8175 MB / 1.206 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007344/1.495, allocations: 1.497 MB / 1.208 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04993/1.545, allocations: 26.84 MB / 1.234 GB, free: 5.32 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/1.547, allocations: 2.307 MB / 1.236 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.004106/1.551, allocations: 0.8916 MB / 1.237 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00206/1.553, allocations: 1.448 MB / 1.238 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of SimCode: time 8.32e-07/1.553, allocations: 0 / 1.238 GB, free: 0.6406 MB / 0.8575 GB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: BuildingSystems.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).