Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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: translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00554/0.00554, allocations: 100.6 kB / 15.73 MB, free: 6.051 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.00119/0.00119, allocations: 197.6 kB / 16.68 MB, free: 5.965 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9038/0.9038, allocations: 135.1 MB / 425.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 71.88 kB / 0.5857 GB, free: 3.234 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4296/0.4308, allocations: 80.91 MB / 0.6647 GB, free: 7.543 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter mov.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05256/0.4834, allocations: 53.27 MB / 0.7167 GB, free: 12.12 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02403/0.5075, allocations: 15.17 MB / 0.7315 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003817/0.5113, allocations: 91.5 kB / 0.7316 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003714/0.5151, allocations: 1.132 MB / 0.7327 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.007118/0.5222, allocations: 2.447 MB / 0.7351 GB, free: 9.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00638/0.5286, allocations: 2.276 MB / 0.7373 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.008024/0.5366, allocations: 4.627 MB / 0.7418 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004182/0.5408, allocations: 1.633 MB / 0.7434 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006822/0.5477, allocations: 1.961 MB / 0.7453 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00289/0.5506, allocations: 1.349 MB / 0.7467 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0006819/0.5513, allocations: 168 kB / 0.7468 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004497/0.5558, allocations: 1.837 MB / 0.7486 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0008833/0.5567, allocations: 0.5255 MB / 0.7491 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001967/0.5587, allocations: 1.034 MB / 0.7501 GB, free: 9.785 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006209/0.5649, allocations: 3.334 MB / 0.7534 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.5649, allocations: 0 / 0.7534 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.873e-06/0.5649, allocations: 0 / 0.7534 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001238/0.565, allocations: 0 / 0.7534 GB, free: 6.441 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.005977/0.571, allocations: 2.525 MB / 0.7559 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.5711, allocations: 8.031 kB / 0.7559 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00224/0.5733, allocations: 461.3 kB / 0.7563 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003246/0.5766, allocations: 1.667 MB / 0.7579 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.468e-05/0.5767, allocations: 94.2 kB / 0.758 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.5769, allocations: 120 kB / 0.7581 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002466/0.5794, allocations: 1.346 MB / 0.7595 GB, free: 16 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.5794, allocations: 7.938 kB / 0.7595 GB, free: 8 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.5795, allocations: 48.05 kB / 0.7595 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-05/0.5796, allocations: 42 kB / 0.7595 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002438/0.582, allocations: 1.074 MB / 0.7606 GB, free: 14.84 MB / 0.5919 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.008878/0.5909, allocations: 7.08 MB / 0.7675 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002252/0.5932, allocations: 1.352 MB / 0.7688 GB, free: 5.738 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008991/0.5941, allocations: 426.8 kB / 0.7692 GB, free: 5.32 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004929/0.599, allocations: 3.087 MB / 0.7722 GB, free: 1.891 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009781/0.6, allocations: 442.8 kB / 0.7727 GB, free: 1.449 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=60): time 2.625e-06/0.6, allocations: 0 / 0.7727 GB, free: 1.449 MB / 0.5919 GB Notification: Performance of matching and sorting (n=60): time 0.002943/0.603, allocations: 1.202 MB / 0.7738 GB, free: 228 kB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.6031, allocations: 59.97 kB / 0.7739 GB, free: 156 kB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001932/0.605, allocations: 1.541 MB / 0.7754 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.398e-05/0.6051, allocations: 41.7 kB / 0.7754 GB, free: 14.56 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007226/0.6058, allocations: 0.88 MB / 0.7763 GB, free: 13.67 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.606, allocations: 217 kB / 0.7765 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003072/0.6063, allocations: 202.4 kB / 0.7767 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.6065, allocations: 341.9 kB / 0.777 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008397/0.6073, allocations: 388.6 kB / 0.7774 GB, free: 12.53 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.6084, allocations: 0.7514 MB / 0.7781 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/0.6103, allocations: 1.109 MB / 0.7792 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.6103, allocations: 7.938 kB / 0.7792 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002539/0.6129, allocations: 1.293 MB / 0.7805 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.045e-05/0.6129, allocations: 35.27 kB / 0.7805 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.613, allocations: 12 kB / 0.7805 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.296e-05/0.613, allocations: 16 kB / 0.7805 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009823/0.614, allocations: 256.2 kB / 0.7808 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.76e-05/0.614, allocations: 27.91 kB / 0.7808 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.6151, allocations: 139.7 kB / 0.781 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.6152, allocations: 55.97 kB / 0.781 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001333/0.6166, allocations: 0.6659 MB / 0.7817 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001068/0.6177, allocations: 0.7358 MB / 0.7824 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00182/0.6195, allocations: 1.082 MB / 0.7834 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.141e-06/0.6195, allocations: 4 kB / 0.7834 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.00243/0.6219, allocations: 1.266 MB / 0.7847 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.622, allocations: 37.7 kB / 0.7847 GB, free: 4.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.622, allocations: 16 kB / 0.7847 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.622, allocations: 19.98 kB / 0.7847 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009119/0.623, allocations: 247.6 kB / 0.785 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.911e-05/0.623, allocations: 23.92 kB / 0.785 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009075/0.6239, allocations: 116 kB / 0.7851 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.441e-05/0.624, allocations: 51.98 kB / 0.7852 GB, free: 3.891 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (120): * Single equations (assignments): 118 * Array equations: 1 * 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.0002619/0.6243, allocations: 257.2 kB / 0.7854 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/0.6245, allocations: 161.9 kB / 0.7856 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002414/0.6269, allocations: 1.112 MB / 0.7866 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.862e-05/0.6269, allocations: 8 kB / 0.7867 GB, free: 2.336 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.6269, allocations: 0 / 0.7867 GB, free: 2.336 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001776/0.6287, allocations: 0.9587 MB / 0.7876 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004206/0.6329, allocations: 2.413 MB / 0.7899 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.633, allocations: 4 kB / 0.7899 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006955/0.6337, allocations: 143.8 kB / 0.7901 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001556/0.6338, allocations: 28.84 kB / 0.7901 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.502e-05/0.6339, allocations: 19.98 kB / 0.7901 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.6349, allocations: 1.41 MB / 0.7915 GB, free: 13.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.6349, allocations: 3.938 kB / 0.7915 GB, free: 13.09 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002907/0.6378, allocations: 1.535 MB / 0.793 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005499/0.6384, allocations: 346.5 kB / 0.7933 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.6386, allocations: 24.05 kB / 0.7934 GB, free: 11.15 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007415/0.6393, allocations: 59.95 kB / 0.7934 GB, free: 11.09 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.6395, allocations: 56.47 kB / 0.7935 GB, free: 11.03 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.127e-05/0.6395, allocations: 31.97 kB / 0.7935 GB, free: 11 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.00157/0.6411, allocations: 1.093 MB / 0.7946 GB, free: 9.883 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6411, allocations: 0 / 0.7946 GB, free: 9.883 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002436/0.6436, allocations: 0.8615 MB / 0.7954 GB, free: 9.02 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00176/0.6453, allocations: 0.7205 MB / 0.7961 GB, free: 8.43 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003681/0.649, allocations: 1.581 MB / 0.7977 GB, free: 6.828 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.649, allocations: 0 / 0.7977 GB, free: 6.828 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.6502, allocations: 0.5418 MB / 0.7982 GB, free: 6.273 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002873/0.6531, allocations: 0.7644 MB / 0.7989 GB, free: 5.52 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005297/0.6584, allocations: 3.023 MB / 0.8019 GB, free: 2.457 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009161/0.6593, allocations: 1.364 MB / 0.8032 GB, free: 1.066 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001378/0.6607, allocations: 417.8 kB / 0.8036 GB, free: 0.6523 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003097/0.661, allocations: 131.4 kB / 0.8037 GB, free: 0.5234 MB / 0.6231 GB Notification: Performance of SimCode: time 1.042e-06/0.661, allocations: 0 / 0.8037 GB, free: 0.5234 MB / 0.6231 GB Notification: Performance of Templates: time 0.05579/0.7168, allocations: 31.67 MB / 0.8347 GB, free: 1.258 MB / 0.6544 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)