Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8087/0.8087, allocations: 150.9 MB / 166 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002974/0.0002975, allocations: 15.98 kB / 204 MB, free: 10.12 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1567, allocations: 31.32 MB / 235.4 MB, free: 5.59 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.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.613/1.77, allocations: 292.6 MB / 0.5156 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.534/2.304, allocations: 191.1 MB / 0.7022 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004524/2.304, allocations: 8.406 kB / 0.7022 GB, free: 3.754 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59: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/PressureLosses/Diaphragm.mo:34:3-35:67: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/Diaphragm.mo:36:3-37:65: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.0001848/2.304, allocations: 27.31 kB / 0.7023 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003928/2.305, allocations: 96.62 kB / 0.7024 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02926/2.334, allocations: 9.324 MB / 0.7115 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006405/2.335, allocations: 385.7 kB / 0.7118 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002539/2.335, allocations: 184.2 kB / 0.712 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/2.335, allocations: 149.2 kB / 0.7121 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/2.335, allocations: 169.8 kB / 0.7123 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.8e-05/2.335, allocations: 24.91 kB / 0.7123 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03542/2.371, allocations: 21.01 MB / 0.7329 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001851/2.371, allocations: 64.58 kB / 0.7329 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003023/2.371, allocations: 178.1 kB / 0.7331 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02875/2.4, allocations: 10.52 MB / 0.7434 GB, free: 108 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/2.4, allocations: 1.094 kB / 0.7434 GB, free: 108 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.503e-06/2.4, allocations: 1.719 kB / 0.7434 GB, free: 108 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.123e-06/2.4, allocations: 1.812 kB / 0.7434 GB, free: 108 kB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.006082/2.406, allocations: 1.859 MB / 0.7452 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/2.406, allocations: 13.12 kB / 0.7452 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/2.407, allocations: 45.25 kB / 0.7452 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/2.407, allocations: 293.8 kB / 0.7455 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/2.407, allocations: 29 kB / 0.7455 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.763e-05/2.407, allocations: 34.28 kB / 0.7456 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/2.408, allocations: 381.6 kB / 0.7459 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/2.408, allocations: 3.406 kB / 0.7459 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/2.408, allocations: 12.59 kB / 0.746 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/2.408, allocations: 7.906 kB / 0.746 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004007/2.408, allocations: 248.4 kB / 0.7462 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008034/2.416, allocations: 6.166 MB / 0.7522 GB, free: 9.16 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/2.416, allocations: 77.3 kB / 0.7523 GB, free: 9.129 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.07e-05/2.416, allocations: 28.61 kB / 0.7523 GB, free: 9.121 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2973/2.714, allocations: 154.7 MB / 0.9034 GB, free: 6.652 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/2.714, allocations: 31.38 kB / 0.9035 GB, free: 6.613 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.964e-06/2.714, allocations: 4 kB / 0.9035 GB, free: 6.609 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.000795/2.715, allocations: 246.2 kB / 0.9037 GB, free: 6.371 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/2.715, allocations: 85.09 kB / 0.9038 GB, free: 6.27 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/2.715, allocations: 294.8 kB / 0.9041 GB, free: 6.031 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/2.715, allocations: 25.7 kB / 0.9041 GB, free: 6 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/2.715, allocations: 233.4 kB / 0.9043 GB, free: 5.809 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/2.715, allocations: 30.67 kB / 0.9043 GB, free: 5.781 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.275e-05/2.715, allocations: 62.86 kB / 0.9044 GB, free: 5.734 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001162/2.715, allocations: 329.8 kB / 0.9047 GB, free: 5.41 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/2.716, allocations: 47.25 kB / 0.9047 GB, free: 5.379 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/2.716, allocations: 166.3 kB / 0.9049 GB, free: 5.191 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000243/2.716, allocations: 210.8 kB / 0.9051 GB, free: 4.996 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/2.716, allocations: 0 / 0.9051 GB, free: 4.996 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005096/2.716, allocations: 280.6 kB / 0.9054 GB, free: 4.793 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/2.717, allocations: 8 kB / 0.9054 GB, free: 4.785 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/2.717, allocations: 5.203 kB / 0.9054 GB, free: 4.781 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009507/2.717, allocations: 110.8 kB / 0.9055 GB, free: 4.676 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/2.718, allocations: 40.23 kB / 0.9055 GB, free: 4.641 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00044/2.718, allocations: 0.5772 MB / 0.9061 GB, free: 4.062 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/2.718, allocations: 35.8 kB / 0.9061 GB, free: 4.031 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.522e-05/2.718, allocations: 9.188 kB / 0.9061 GB, free: 4.023 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,Diaphragm.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Diaphragm.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001519/2.719, allocations: 150.3 kB / 0.9063 GB, free: 3.891 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.113e-05/2.719, allocations: 27.66 kB / 0.9063 GB, free: 3.863 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000592/2.719, allocations: 171.9 kB / 0.9065 GB, free: 3.715 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/2.719, allocations: 0 / 0.9065 GB, free: 3.715 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/2.719, allocations: 5.203 kB / 0.9065 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/2.719, allocations: 4 kB / 0.9065 GB, free: 3.707 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002983/2.72, allocations: 307 kB / 0.9068 GB, free: 3.406 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/2.72, allocations: 4 kB / 0.9068 GB, free: 3.402 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.522e-05/2.72, allocations: 4 kB / 0.9068 GB, free: 3.398 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006856/2.72, allocations: 101.4 kB / 0.9069 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/2.72, allocations: 1.25 kB / 0.9069 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004046/2.721, allocations: 0.5648 MB / 0.9074 GB, free: 2.738 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/2.721, allocations: 0 / 0.9074 GB, free: 2.738 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004849/2.721, allocations: 171 kB / 0.9076 GB, free: 2.574 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.122e-05/2.721, allocations: 105.8 kB / 0.9077 GB, free: 2.457 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/2.721, allocations: 1.25 kB / 0.9077 GB, free: 2.457 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.343e-05/2.721, allocations: 4.609 kB / 0.9077 GB, free: 2.453 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.76e-05/2.721, allocations: 8.562 kB / 0.9077 GB, free: 2.445 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/2.721, allocations: 4.625 kB / 0.9077 GB, free: 2.441 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002315/2.722, allocations: 207.4 kB / 0.9079 GB, free: 2.273 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/2.722, allocations: 0 / 0.9079 GB, free: 2.273 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004513/2.726, allocations: 1.608 MB / 0.9095 GB, free: 0.7812 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (4): * Single equations (assignments): 3 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008472/2.735, allocations: 2.572 MB / 0.912 GB, free: 14.59 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0005499/2.735, allocations: 130.7 kB / 0.9121 GB, free: 14.5 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/2.735, allocations: 256 / 0.9121 GB, free: 14.5 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001442/2.735, allocations: 43.86 kB / 0.9122 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004544/2.736, allocations: 61.53 kB / 0.9122 GB, free: 14.42 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008431/2.737, allocations: 0.5518 MB / 0.9128 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/2.737, allocations: 0.7674 MB / 0.9135 GB, free: 13.08 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001581/2.737, allocations: 38.97 kB / 0.9135 GB, free: 13.04 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/2.737, allocations: 30.81 kB / 0.9136 GB, free: 13.02 MB / 0.7637 GB Notification: Performance of SimCode: time 2.2e-07/2.737, allocations: 0 / 0.9136 GB, free: 13.02 MB / 0.7637 GB Notification: Performance of Templates: time 0.06157/2.799, allocations: 48.87 MB / 0.9613 GB, free: 12.23 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)