Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA.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.TestDiffusion_VolumeA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8459/0.8459, allocations: 150.9 MB / 166 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003136, allocations: 15.97 kB / 204 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1814, allocations: 31.32 MB / 235.4 MB, free: 5.453 MB / 190.1 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.TestDiffusion_VolumeA): time 1.729/1.91, allocations: 294.1 MB / 0.5171 GB, free: 12.4 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5612/2.472, allocations: 190.7 MB / 0.7033 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005228/2.472, allocations: 16 kB / 0.7033 GB, free: 3.73 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75: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/Sink.mo:39:3-40: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/PressureLosses/SwitchValve.mo:36:3-37:55:writable] Warning: Connector C1 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/PressureLosses/SwitchValve.mo:38:3-40:35:writable] Warning: Connector C2 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/Volumes/VolumeA.mo:104:3-105:67:writable] Warning: Connector Ce1 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/Volumes/VolumeA.mo:106:3-108:57:writable] Warning: Connector Ce2 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/Volumes/VolumeA.mo:109:3-110:73:writable] Warning: Connector Cs1 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/Volumes/VolumeA.mo:111:3-112:75:writable] Warning: Connector Cs2 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/PressureLosses/SwitchValve.mo:36:3-37:55:writable] Warning: Connector C1 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/PressureLosses/SwitchValve.mo:38:3-40:35:writable] Warning: Connector C2 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.0002942/2.473, allocations: 66.67 kB / 0.7034 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005537/2.473, allocations: 217.4 kB / 0.7036 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03009/2.503, allocations: 9.312 MB / 0.7127 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001224/2.504, allocations: 0.9447 MB / 0.7136 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000497/2.505, allocations: 462.6 kB / 0.7141 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003855/2.505, allocations: 352.9 kB / 0.7144 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004499/2.506, allocations: 420.2 kB / 0.7148 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.72e-05/2.506, allocations: 65.72 kB / 0.7149 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03843/2.544, allocations: 20.16 MB / 0.7345 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003575/2.545, allocations: 175.6 kB / 0.7347 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007575/2.545, allocations: 423.4 kB / 0.7351 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02886/2.574, allocations: 10.47 MB / 0.7453 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/2.574, allocations: 0 / 0.7453 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.435e-06/2.574, allocations: 0 / 0.7453 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.611e-05/2.574, allocations: 0 / 0.7453 GB, free: 15.77 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.007268/2.582, allocations: 2.284 MB / 0.7476 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/2.582, allocations: 10.78 kB / 0.7476 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/2.582, allocations: 100.4 kB / 0.7477 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007213/2.583, allocations: 465.6 kB / 0.7481 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/2.583, allocations: 122 kB / 0.7482 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/2.583, allocations: 83.06 kB / 0.7483 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/2.585, allocations: 0.8828 MB / 0.7492 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/2.585, allocations: 5.531 kB / 0.7492 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.799e-05/2.585, allocations: 35.72 kB / 0.7492 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.033e-05/2.585, allocations: 26.11 kB / 0.7492 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/2.586, allocations: 0.6724 MB / 0.7499 GB, free: 13.55 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.01093/2.597, allocations: 8.335 MB / 0.758 GB, free: 6.695 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003895/2.597, allocations: 216.3 kB / 0.7582 GB, free: 6.656 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/2.597, allocations: 90.52 kB / 0.7583 GB, free: 6.637 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3426/2.94, allocations: 184.8 MB / 0.9388 GB, free: 2.715 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/2.94, allocations: 30.56 kB / 0.9388 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=21): time 3.466e-06/2.94, allocations: 4 kB / 0.9388 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.002535/2.943, allocations: 0.7443 MB / 0.9395 GB, free: 2 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.042e-05/2.943, allocations: 114.2 kB / 0.9396 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008076/2.944, allocations: 0.5815 MB / 0.9402 GB, free: 1.41 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/2.944, allocations: 31.45 kB / 0.9402 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002909/2.944, allocations: 476.3 kB / 0.9407 GB, free: 0.9922 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.708e-05/2.944, allocations: 75.34 kB / 0.9408 GB, free: 0.9297 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002093/2.944, allocations: 167.8 kB / 0.9409 GB, free: 0.8125 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001263/2.944, allocations: 361.7 kB / 0.9413 GB, free: 484 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002646/2.945, allocations: 142.8 kB / 0.9414 GB, free: 388 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004555/2.945, allocations: 0.5044 MB / 0.9419 GB, free: 15.77 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000763/2.946, allocations: 0.7687 MB / 0.9426 GB, free: 14.98 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/2.946, allocations: 4 kB / 0.9427 GB, free: 14.98 MB / 0.795 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001768/2.948, allocations: 0.9044 MB / 0.9435 GB, free: 14.3 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.184e-05/2.948, allocations: 59.41 kB / 0.9436 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.667e-05/2.948, allocations: 16 kB / 0.9436 GB, free: 14.22 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006818/2.948, allocations: 201.8 kB / 0.9438 GB, free: 14.05 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003365/2.949, allocations: 129.5 kB / 0.9439 GB, free: 13.95 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007592/2.95, allocations: 0.7442 MB / 0.9446 GB, free: 13.27 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/2.95, allocations: 108.9 kB / 0.9448 GB, free: 13.17 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.01e-05/2.95, allocations: 55.36 kB / 0.9448 GB, free: 13.12 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 22 (volumeA.Cs1.ftype,volumeA.Cs2.ftype,volumeA.Cs2.diff_on_2,volumeA.Ce2.ftype,volumeA.Ce2.diff_on_1,sourcePQ1.C.ftype,volumeA.fluids[1],switchValve.C2.diff_on_1,volumeA.Cs1.diff_on_2,sink1.fluid,switchValve.fluid,switchValve1.fluid,constante1.yL.signal,constante.yL.signal,volumeA.fluid1,sourcePQ1.fluid1,volumeA.Cs1.diff_on_1,switchValve1.C2.diff_on_1,volumeA.Cs2.diff_on_1,volumeA.Ce2.diff_on_2,volumeA.Ce1.diff_on_2,sourcePQ1.C.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 2 * 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 {(4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.000323/2.95, allocations: 280.4 kB / 0.9451 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/2.951, allocations: 64.95 kB / 0.9451 GB, free: 12.82 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/2.952, allocations: 0.496 MB / 0.9456 GB, free: 12.43 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/2.952, allocations: 3.938 kB / 0.9456 GB, free: 12.42 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/2.952, allocations: 3.984 kB / 0.9456 GB, free: 12.42 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/2.952, allocations: 0 / 0.9456 GB, free: 12.42 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006717/2.952, allocations: 0.5205 MB / 0.9461 GB, free: 11.97 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/2.952, allocations: 0 / 0.9461 GB, free: 11.97 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.248e-05/2.953, allocations: 8 kB / 0.9461 GB, free: 11.96 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005388/2.953, allocations: 185.9 kB / 0.9463 GB, free: 11.81 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/2.953, allocations: 3.938 kB / 0.9463 GB, free: 11.81 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006818/2.954, allocations: 0.7365 MB / 0.947 GB, free: 11.1 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/2.954, allocations: 6.906 kB / 0.947 GB, free: 11.09 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/2.955, allocations: 0.5594 MB / 0.9476 GB, free: 10.52 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/2.955, allocations: 160.2 kB / 0.9477 GB, free: 10.34 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.573e-05/2.955, allocations: 15.94 kB / 0.9478 GB, free: 10.33 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/2.955, allocations: 4 kB / 0.9478 GB, free: 10.32 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/2.955, allocations: 15.97 kB / 0.9478 GB, free: 10.31 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.72e-05/2.955, allocations: 8.094 kB / 0.9478 GB, free: 10.3 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000413/2.956, allocations: 366.8 kB / 0.9481 GB, free: 9.945 MB / 0.795 GB Notification: Performance of sort global known variables: time 4.41e-07/2.956, allocations: 0 / 0.9481 GB, free: 9.945 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.004603/2.96, allocations: 1.553 MB / 0.9497 GB, free: 8.391 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (constante.yL.signal,constante1.yL.signal) * Number of discrete states: 2 (constante.yL.signal,constante1.yL.signal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 2 * 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 {(4,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008198/2.969, allocations: 2.29 MB / 0.9519 GB, free: 6.395 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009645/2.97, allocations: 0.4992 MB / 0.9524 GB, free: 5.91 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/2.97, allocations: 0 / 0.9524 GB, free: 5.91 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003739/2.97, allocations: 233.8 kB / 0.9526 GB, free: 5.66 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000708/2.971, allocations: 125.1 kB / 0.9527 GB, free: 5.535 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/2.973, allocations: 1.268 MB / 0.954 GB, free: 4.246 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/2.973, allocations: 0.8962 MB / 0.9548 GB, free: 3.324 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003512/2.974, allocations: 88.92 kB / 0.9549 GB, free: 3.238 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.157e-05/2.974, allocations: 43.44 kB / 0.955 GB, free: 3.199 MB / 0.795 GB Notification: Performance of SimCode: time 2.8e-07/2.974, allocations: 1.094 kB / 0.955 GB, free: 3.199 MB / 0.795 GB Notification: Performance of Templates: time 0.2625/3.236, allocations: 48.98 MB / 1.003 GB, free: 448.9 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_VolumeA.pipe 2>&1)