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.8261/0.8261, allocations: 150.9 MB / 166.5 MB, free: 14.72 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003359/0.0003361, allocations: 13.97 kB / 237.1 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05697/0.05732, allocations: 31.34 MB / 268.4 MB, free: 7.133 MB / 222.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.634/1.691, allocations: 294.7 MB / 0.5499 GB, free: 13.24 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4987/2.19, allocations: 190.1 MB / 0.7355 GB, free: 1.77 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002722/2.19, allocations: 6.938 kB / 0.7355 GB, free: 1.77 MB / 0.5919 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.0001267/2.19, allocations: 44.05 kB / 0.7355 GB, free: 1.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002806/2.191, allocations: 117.8 kB / 0.7357 GB, free: 1.77 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02962/2.22, allocations: 12.1 MB / 0.7475 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.000475/2.221, allocations: 399.2 kB / 0.7479 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/2.221, allocations: 196.8 kB / 0.748 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/2.221, allocations: 168.4 kB / 0.7482 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/2.221, allocations: 176.2 kB / 0.7484 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.929e-05/2.221, allocations: 34.19 kB / 0.7484 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03369/2.255, allocations: 21.01 MB / 0.7689 GB, free: 480 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001107/2.255, allocations: 74.25 kB / 0.769 GB, free: 472 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002438/2.256, allocations: 184.9 kB / 0.7692 GB, free: 460 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02429/2.28, allocations: 10.4 MB / 0.7793 GB, free: 12.86 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/2.28, allocations: 1.094 kB / 0.7793 GB, free: 12.86 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.984e-06/2.28, allocations: 0 / 0.7793 GB, free: 12.86 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.221e-05/2.28, allocations: 2.312 kB / 0.7793 GB, free: 12.86 MB / 0.6075 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.00514/2.285, allocations: 1.867 MB / 0.7812 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/2.285, allocations: 15.39 kB / 0.7812 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.272e-05/2.285, allocations: 41.38 kB / 0.7812 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/2.286, allocations: 308 kB / 0.7815 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/2.286, allocations: 28.34 kB / 0.7815 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.263e-05/2.286, allocations: 35.69 kB / 0.7816 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005798/2.286, allocations: 378.7 kB / 0.7819 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/2.286, allocations: 2.031 kB / 0.7819 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/2.286, allocations: 14.72 kB / 0.7819 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/2.286, allocations: 10.34 kB / 0.7819 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003967/2.287, allocations: 248.2 kB / 0.7822 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008887/2.296, allocations: 6.156 MB / 0.7882 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/2.296, allocations: 88.78 kB / 0.7883 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.261e-05/2.296, allocations: 26.03 kB / 0.7883 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3204/2.616, allocations: 155.6 MB / 0.9403 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/2.616, allocations: 35.31 kB / 0.9403 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.895e-06/2.616, allocations: 0 / 0.9403 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0007774/2.617, allocations: 257.1 kB / 0.9406 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/2.617, allocations: 85.11 kB / 0.9407 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003455/2.618, allocations: 286 kB / 0.9409 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/2.618, allocations: 26.91 kB / 0.941 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/2.618, allocations: 237.7 kB / 0.9412 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/2.618, allocations: 27.64 kB / 0.9412 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/2.618, allocations: 61.84 kB / 0.9413 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001049/2.618, allocations: 338.8 kB / 0.9416 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/2.618, allocations: 44.45 kB / 0.9416 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/2.618, allocations: 159.4 kB / 0.9418 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/2.619, allocations: 206.3 kB / 0.942 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/2.619, allocations: 0 / 0.942 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005352/2.619, allocations: 275.9 kB / 0.9422 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/2.619, allocations: 8.031 kB / 0.9422 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/2.619, allocations: 8 kB / 0.9423 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009349/2.62, allocations: 112.5 kB / 0.9424 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/2.62, allocations: 48.89 kB / 0.9424 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004471/2.621, allocations: 0.5692 MB / 0.943 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/2.621, allocations: 35.59 kB / 0.943 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/2.621, allocations: 12 kB / 0.943 GB, free: 11.36 MB / 0.7794 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.0001509/2.621, allocations: 151.6 kB / 0.9432 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.508e-05/2.621, allocations: 23.7 kB / 0.9432 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005625/2.622, allocations: 170.9 kB / 0.9433 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/2.622, allocations: 11.98 kB / 0.9434 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/2.622, allocations: 0 / 0.9434 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/2.622, allocations: 2.25 kB / 0.9434 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/2.622, allocations: 301.4 kB / 0.9436 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/2.622, allocations: 0 / 0.9436 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.697e-05/2.622, allocations: 4 kB / 0.9436 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005091/2.623, allocations: 83.39 kB / 0.9437 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/2.623, allocations: 4 kB / 0.9437 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003851/2.623, allocations: 0.5671 MB / 0.9443 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/2.623, allocations: 1.203 kB / 0.9443 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004773/2.624, allocations: 173.5 kB / 0.9445 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.809e-05/2.624, allocations: 108.8 kB / 0.9446 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.657e-05/2.624, allocations: 0 / 0.9446 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.831e-05/2.624, allocations: 8 kB / 0.9446 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/2.624, allocations: 7.984 kB / 0.9446 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/2.624, allocations: 0 / 0.9446 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002343/2.624, allocations: 209.9 kB / 0.9448 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.523e-06/2.624, allocations: 0 / 0.9448 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.003888/2.628, allocations: 1.609 MB / 0.9463 GB, free: 7.836 MB / 0.7794 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.00674/2.635, allocations: 2.473 MB / 0.9488 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004584/2.635, allocations: 133.3 kB / 0.9489 GB, free: 5.547 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/2.635, allocations: 4.125 kB / 0.9489 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001453/2.636, allocations: 35.98 kB / 0.9489 GB, free: 5.508 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004184/2.636, allocations: 76.36 kB / 0.949 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007708/2.637, allocations: 455.2 kB / 0.9494 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/2.637, allocations: 0.7597 MB / 0.9502 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001352/2.637, allocations: 42.91 kB / 0.9502 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.824e-05/2.637, allocations: 31.44 kB / 0.9502 GB, free: 4.121 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/2.637, allocations: 1.203 kB / 0.9502 GB, free: 4.121 MB / 0.7794 GB Notification: Performance of Templates: time 0.05872/2.696, allocations: 48.71 MB / 0.9978 GB, free: 3.473 MB / 0.8262 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)