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.001288/0.001288, allocations: 108 kB / 15.61 MB, free: 152 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.001248/0.001248, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.282/1.282, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7208/0.7208, allocations: 132.2 MB / 422.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 64.23 kB / 0.5019 GB, free: 8.641 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1331, allocations: 80.2 MB / 0.5802 GB, free: 8.66 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.8183/0.9514, allocations: 342.4 MB / 0.9146 GB, free: 16.68 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03756/0.989, allocations: 36.53 MB / 0.9502 GB, free: 16.27 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004489/0.9935, allocations: 135.4 kB / 0.9504 GB, free: 16.27 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.005223/0.9988, allocations: 2.333 MB / 0.9526 GB, free: 16.23 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.0124/1.011, allocations: 5.754 MB / 0.9583 GB, free: 15.95 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.006598/1.018, allocations: 3.028 MB / 0.9612 GB, free: 15.86 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.008817/1.027, allocations: 8.559 MB / 0.9696 GB, free: 15.32 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004368/1.031, allocations: 4.186 MB / 0.9737 GB, free: 13.1 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008071/1.039, allocations: 4.92 MB / 0.9785 GB, free: 10.95 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003879/1.043, allocations: 2.698 MB / 0.9811 GB, free: 9.609 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0005096/1.044, allocations: 373.7 kB / 0.9815 GB, free: 9.609 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008229/1.052, allocations: 5.125 MB / 0.9865 GB, free: 6.406 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0009259/1.053, allocations: 1.256 MB / 0.9877 GB, free: 5.176 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001951/1.055, allocations: 2.082 MB / 0.9897 GB, free: 3.121 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.008386/1.063, allocations: 7.035 MB / 0.9966 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/1.063, allocations: 4 kB / 0.9966 GB, free: 12.41 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.603e-06/1.063, allocations: 0 / 0.9966 GB, free: 12.41 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 6.836e-05/1.063, allocations: 0 / 0.9966 GB, free: 12.41 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.007188/1.07, allocations: 4.389 MB / 1.001 GB, free: 8.008 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/1.07, allocations: 8.031 kB / 1.001 GB, free: 8 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004121/1.071, allocations: 358.4 kB / 1.001 GB, free: 7.641 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007897/1.079, allocations: 1.371 MB / 1.003 GB, free: 6.27 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004916/1.084, allocations: 2.732 MB / 1.005 GB, free: 3.59 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0011/1.085, allocations: 453.9 kB / 1.006 GB, free: 3.125 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003594/1.085, allocations: 266.6 kB / 1.006 GB, free: 2.867 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005988/1.091, allocations: 3.367 MB / 1.009 GB, free: 15.41 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.234e-05/1.091, allocations: 0 / 1.009 GB, free: 15.41 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002508/1.091, allocations: 104 kB / 1.009 GB, free: 15.3 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.119e-05/1.092, allocations: 104.9 kB / 1.009 GB, free: 15.2 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006547/1.098, allocations: 2.974 MB / 1.012 GB, free: 12.23 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.01933/1.117, allocations: 14.38 MB / 1.026 GB, free: 13.04 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003374/1.121, allocations: 1.574 MB / 1.028 GB, free: 11.43 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/1.122, allocations: 0.6927 MB / 1.029 GB, free: 10.74 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003719/1.123, allocations: 300.1 kB / 1.029 GB, free: 10.39 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001731/1.124, allocations: 0.8247 MB / 1.03 GB, free: 9.551 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=104): time 2.645e-06/1.124, allocations: 0 / 1.03 GB, free: 9.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=104): time 0.005575/1.13, allocations: 2.146 MB / 1.032 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/1.13, allocations: 115.8 kB / 1.032 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00353/1.134, allocations: 2.63 MB / 1.034 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001192/1.134, allocations: 53.69 kB / 1.034 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001222/1.135, allocations: 1.592 MB / 1.036 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003157/1.135, allocations: 360.7 kB / 1.036 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000535/1.136, allocations: 377.9 kB / 1.037 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.905e-05/1.136, allocations: 305.1 kB / 1.037 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002053/1.138, allocations: 0.7855 MB / 1.038 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002618/1.141, allocations: 1.533 MB / 1.039 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004054/1.145, allocations: 2.197 MB / 1.041 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/1.145, allocations: 8 kB / 1.041 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of matching and sorting (n=219) (initialization): time 0.005559/1.15, allocations: 2.509 MB / 1.044 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.931e-05/1.15, allocations: 49.69 kB / 1.044 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/1.15, allocations: 20 kB / 1.044 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.777e-05/1.15, allocations: 32 kB / 1.044 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001981/1.152, allocations: 480.8 kB / 1.044 GB, free: 9.895 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.673e-05/1.153, allocations: 44.61 kB / 1.045 GB, free: 9.859 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002708/1.155, allocations: 396.5 kB / 1.045 GB, free: 9.477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/1.155, allocations: 91.98 kB / 1.045 GB, free: 9.387 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003142/1.159, allocations: 1.463 MB / 1.046 GB, free: 7.922 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002536/1.161, allocations: 1.519 MB / 1.048 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004024/1.165, allocations: 2.163 MB / 1.05 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.528e-06/1.165, allocations: 4 kB / 1.05 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of matching and sorting (n=219) (initialization_lambda0): time 0.005563/1.171, allocations: 2.488 MB / 1.052 GB, free: 1.305 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.709e-05/1.171, allocations: 39.73 kB / 1.052 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.346e-05/1.171, allocations: 24 kB / 1.052 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/1.171, allocations: 28 kB / 1.053 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001937/1.173, allocations: 483.5 kB / 1.053 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.175e-05/1.173, allocations: 47.42 kB / 1.053 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002632/1.175, allocations: 335.3 kB / 1.053 GB, free: 412 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/1.176, allocations: 87.98 kB / 1.053 GB, free: 324 kB / 0.7325 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.0004201/1.176, allocations: 313.9 kB / 1.054 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003548/1.176, allocations: 276.6 kB / 1.054 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003887/1.18, allocations: 1.651 MB / 1.056 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/1.18, allocations: 15.94 kB / 1.056 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/1.18, allocations: 96 / 1.056 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002959/1.183, allocations: 1.305 MB / 1.057 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007462/1.191, allocations: 4.3 MB / 1.061 GB, free: 8.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.829e-06/1.191, allocations: 8 kB / 1.061 GB, free: 8.332 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/1.192, allocations: 243.4 kB / 1.061 GB, free: 8.105 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001987/1.192, allocations: 55.64 kB / 1.061 GB, free: 8.051 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.742e-05/1.192, allocations: 31.98 kB / 1.061 GB, free: 8.02 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/1.194, allocations: 1.531 MB / 1.063 GB, free: 6.352 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/1.194, allocations: 10.81 kB / 1.063 GB, free: 6.344 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004966/1.199, allocations: 2.526 MB / 1.065 GB, free: 3.73 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007704/1.199, allocations: 0.4973 MB / 1.066 GB, free: 3.211 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000301/1.2, allocations: 27.98 kB / 1.066 GB, free: 3.184 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001773/1.201, allocations: 139.9 kB / 1.066 GB, free: 3.047 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/1.202, allocations: 94.8 kB / 1.066 GB, free: 2.961 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.988e-05/1.202, allocations: 51.97 kB / 1.066 GB, free: 2.91 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.00261/1.204, allocations: 1.791 MB / 1.068 GB, free: 1.121 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.81e-07/1.204, allocations: 0 / 1.068 GB, free: 1.121 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003378/1.208, allocations: 1.529 MB / 1.069 GB, free: 15.59 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.005932/1.214, allocations: 3.407 MB / 1.073 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.007126/1.221, allocations: 3.068 MB / 1.076 GB, free: 9.18 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/1.221, allocations: 5.75 kB / 1.076 GB, free: 9.176 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001752/1.223, allocations: 0.8145 MB / 1.077 GB, free: 8.383 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005088/1.228, allocations: 1.297 MB / 1.078 GB, free: 7.148 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03415/1.262, allocations: 23.21 MB / 1.1 GB, free: 14.04 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001602/1.263, allocations: 2.123 MB / 1.103 GB, free: 11.89 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.003288/1.267, allocations: 0.7836 MB / 1.103 GB, free: 11.1 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001519/1.268, allocations: 1.253 MB / 1.105 GB, free: 9.848 MB / 0.795 GB Notification: Performance of SimCode: time 6.51e-07/1.268, allocations: 0 / 1.105 GB, free: 9.848 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).