Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9194/0.9194, allocations: 150.8 MB / 166.6 MB, free: 11.15 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002586, allocations: 11.98 kB / 204.7 MB, free: 6.156 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1508, allocations: 31.33 MB / 236 MB, free: 3.891 MB / 186.7 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff): time 1.593/1.744, allocations: 293.2 MB / 0.5168 GB, free: 8.812 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4801/2.224, allocations: 189.6 MB / 0.702 GB, free: 2.691 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000327/2.224, allocations: 14.66 kB / 0.702 GB, free: 2.691 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceQ.mo:62:3-63:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceQ.mo:62:3-63:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:73:3-74:65:writable] Warning: Connector Ec is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:75:3-76:67:writable] Warning: Connector Ef is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:77:3-78:64:writable] Warning: Connector Sf is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerDTorWorEff.mo:79:3-80:63:writable] Warning: Connector Sc is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001713/2.224, allocations: 59.22 kB / 0.7021 GB, free: 2.691 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0004084/2.225, allocations: 202.4 kB / 0.7023 GB, free: 2.688 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02486/2.25, allocations: 8.942 MB / 0.711 GB, free: 2.418 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.000806/2.25, allocations: 0.769 MB / 0.7117 GB, free: 2.418 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003702/2.251, allocations: 389.8 kB / 0.7121 GB, free: 2.359 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002475/2.251, allocations: 299 kB / 0.7124 GB, free: 2.355 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/2.251, allocations: 341.5 kB / 0.7127 GB, free: 2.355 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 6.451e-05/2.251, allocations: 50.16 kB / 0.7128 GB, free: 2.355 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03291/2.284, allocations: 20.29 MB / 0.7326 GB, free: 452 kB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.000205/2.285, allocations: 142 kB / 0.7327 GB, free: 428 kB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0004713/2.285, allocations: 369.2 kB / 0.7331 GB, free: 400 kB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02342/2.309, allocations: 10.49 MB / 0.7433 GB, free: 12.69 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/2.309, allocations: 0 / 0.7433 GB, free: 12.69 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.192e-06/2.309, allocations: 0 / 0.7433 GB, free: 12.69 MB / 0.573 GB Notification: Performance of Transformations before backend: time 8.786e-06/2.309, allocations: 0 / 0.7433 GB, free: 12.69 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.005062/2.314, allocations: 2.126 MB / 0.7454 GB, free: 11.35 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/2.314, allocations: 8 kB / 0.7454 GB, free: 11.35 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/2.314, allocations: 87.5 kB / 0.7455 GB, free: 11.31 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005347/2.314, allocations: 428.9 kB / 0.7459 GB, free: 11 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.493e-05/2.314, allocations: 50.94 kB / 0.7459 GB, free: 11 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.096e-05/2.315, allocations: 68.19 kB / 0.746 GB, free: 11 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/2.316, allocations: 0.6956 MB / 0.7467 GB, free: 10.75 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/2.316, allocations: 4.922 kB / 0.7467 GB, free: 10.75 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.424e-05/2.316, allocations: 37.11 kB / 0.7467 GB, free: 10.74 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/2.316, allocations: 17.84 kB / 0.7467 GB, free: 10.74 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007822/2.317, allocations: 0.514 MB / 0.7472 GB, free: 10.68 MB / 0.573 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.002679/2.319, allocations: 3.145 MB / 0.7503 GB, free: 8.191 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003949/2.32, allocations: 235.5 kB / 0.7505 GB, free: 8.145 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/2.32, allocations: 110.3 kB / 0.7506 GB, free: 8.125 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3911/2.711, allocations: 182.6 MB / 0.929 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/2.711, allocations: 31.44 kB / 0.929 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=25): time 2.054e-06/2.711, allocations: 0 / 0.929 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of matching and sorting (n=25): time 0.002478/2.714, allocations: 0.7357 MB / 0.9297 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/2.714, allocations: 55.41 kB / 0.9298 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005397/2.714, allocations: 0.4909 MB / 0.9302 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/2.714, allocations: 33.7 kB / 0.9303 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/2.714, allocations: 354.3 kB / 0.9306 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.959e-05/2.714, allocations: 90.42 kB / 0.9307 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/2.715, allocations: 105.9 kB / 0.9308 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000132/2.715, allocations: 366.7 kB / 0.9311 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/2.715, allocations: 96.84 kB / 0.9312 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/2.715, allocations: 264.8 kB / 0.9315 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004844/2.716, allocations: 402.8 kB / 0.9319 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/2.716, allocations: 0 / 0.9319 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000786/2.716, allocations: 0.5049 MB / 0.9324 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/2.716, allocations: 9.094 kB / 0.9324 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/2.717, allocations: 8.75 kB / 0.9324 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/2.718, allocations: 382.2 kB / 0.9327 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/2.719, allocations: 61.78 kB / 0.9328 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007218/2.719, allocations: 0.7628 MB / 0.9335 GB, free: 10.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/2.72, allocations: 71.27 kB / 0.9336 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.28e-05/2.72, allocations: 24 kB / 0.9336 GB, free: 10.8 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 8 (sourceWaterSteam_FF.C.ftype,sourceWaterSteam_FC.C.ftype,sinkWaterSteam_FF.fluid,sinkWaterSteam_FC.fluid,exchangerWaterSteamDTorWorEFF.fluid_c,exchangerWaterSteamDTorWorEFF.fluid_f,sourceWaterSteam_FC.fluid1,sourceWaterSteam_FF.fluid1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002347/2.72, allocations: 187.7 kB / 0.9338 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-05/2.72, allocations: 58.25 kB / 0.9339 GB, free: 10.56 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/2.721, allocations: 499.1 kB / 0.9343 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/2.721, allocations: 5.203 kB / 0.9344 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/2.721, allocations: 0 / 0.9344 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/2.721, allocations: 3.938 kB / 0.9344 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/2.723, allocations: 1.058 MB / 0.9354 GB, free: 8.949 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/2.723, allocations: 4 kB / 0.9354 GB, free: 8.945 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.02e-05/2.724, allocations: 12.06 kB / 0.9354 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/2.725, allocations: 311.3 kB / 0.9357 GB, free: 8.629 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/2.725, allocations: 4 kB / 0.9357 GB, free: 8.625 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006971/2.726, allocations: 0.7712 MB / 0.9365 GB, free: 7.832 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/2.726, allocations: 4.031 kB / 0.9365 GB, free: 7.828 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/2.727, allocations: 1.297 MB / 0.9377 GB, free: 6.477 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/2.727, allocations: 153.6 kB / 0.9379 GB, free: 6.309 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.631e-05/2.728, allocations: 15.84 kB / 0.9379 GB, free: 6.293 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/2.728, allocations: 11.88 kB / 0.9379 GB, free: 6.281 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/2.728, allocations: 15.98 kB / 0.9379 GB, free: 6.266 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/2.728, allocations: 15.98 kB / 0.9379 GB, free: 6.25 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003905/2.728, allocations: 362.8 kB / 0.9383 GB, free: 5.898 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.3e-07/2.728, allocations: 0 / 0.9383 GB, free: 5.898 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.004072/2.732, allocations: 1.596 MB / 0.9398 GB, free: 4.301 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007128/2.739, allocations: 2.336 MB / 0.9421 GB, free: 2.238 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0007276/2.74, allocations: 297 kB / 0.9424 GB, free: 1.969 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/2.74, allocations: 0 / 0.9424 GB, free: 1.969 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002251/2.74, allocations: 118.9 kB / 0.9425 GB, free: 1.859 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008595/2.741, allocations: 138.8 kB / 0.9426 GB, free: 1.73 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001581/2.743, allocations: 1.263 MB / 0.9439 GB, free: 436 kB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/2.743, allocations: 0.8737 MB / 0.9447 GB, free: 15.52 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0002571/2.744, allocations: 76.47 kB / 0.9448 GB, free: 15.45 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.377e-05/2.744, allocations: 43.42 kB / 0.9448 GB, free: 15.41 MB / 0.7917 GB Notification: Performance of SimCode: time 3.1e-07/2.744, allocations: 0 / 0.9448 GB, free: 15.41 MB / 0.7917 GB Notification: Performance of Templates: time 0.2273/2.971, allocations: 50.25 MB / 0.9939 GB, free: 425.3 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerDTorWorEff.pipe 2>&1)