Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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.SimpleExamples.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8982/0.8982, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.0003601, allocations: 20.86 kB / 237.1 MB, free: 1.801 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07461/0.07499, allocations: 31.35 MB / 268.4 MB, free: 7.062 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.SimpleExamples.TestDiaphragm): time 1.855/1.93, allocations: 294.7 MB / 0.55 GB, free: 12.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.7219/2.652, allocations: 190.1 MB / 0.7356 GB, free: 2.09 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006293/2.653, allocations: 6.812 kB / 0.7356 GB, free: 2.09 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.0002161/2.653, allocations: 39.95 kB / 0.7357 GB, free: 2.09 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004852/2.654, allocations: 114.8 kB / 0.7358 GB, free: 2.09 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.04051/2.694, allocations: 12.11 MB / 0.7476 GB, free: 1.84 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006537/2.695, allocations: 396.3 kB / 0.748 GB, free: 1.84 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/2.695, allocations: 206.4 kB / 0.7482 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/2.695, allocations: 162.8 kB / 0.7483 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/2.696, allocations: 175.7 kB / 0.7485 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.299e-05/2.696, allocations: 36.44 kB / 0.7485 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.044/2.74, allocations: 21.01 MB / 0.769 GB, free: 0.6797 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002084/2.74, allocations: 78.08 kB / 0.7691 GB, free: 0.668 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003557/2.74, allocations: 181.3 kB / 0.7693 GB, free: 0.6602 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.04107/2.781, allocations: 10.37 MB / 0.7794 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.107e-05/2.781, allocations: 0.8438 kB / 0.7794 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.587e-06/2.781, allocations: 0 / 0.7794 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.678e-05/2.781, allocations: 0 / 0.7794 GB, free: 12.96 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.00718/2.789, allocations: 1.877 MB / 0.7812 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/2.789, allocations: 11.19 kB / 0.7813 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/2.789, allocations: 41.31 kB / 0.7813 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003846/2.789, allocations: 301.7 kB / 0.7816 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/2.789, allocations: 28.84 kB / 0.7816 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.481e-05/2.789, allocations: 38.31 kB / 0.7816 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005649/2.79, allocations: 382.1 kB / 0.782 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/2.79, allocations: 1.641 kB / 0.782 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/2.79, allocations: 13.78 kB / 0.782 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/2.79, allocations: 10.75 kB / 0.782 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003775/2.79, allocations: 245.4 kB / 0.7823 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008381/2.799, allocations: 6.159 MB / 0.7883 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/2.799, allocations: 83.22 kB / 0.7884 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.093e-05/2.799, allocations: 25.58 kB / 0.7884 GB, free: 6.07 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3458/3.145, allocations: 155.6 MB / 0.9404 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.803e-05/3.145, allocations: 30.56 kB / 0.9404 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.765e-06/3.145, allocations: 0 / 0.9404 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.001083/3.146, allocations: 253.9 kB / 0.9407 GB, free: 14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/3.146, allocations: 82.2 kB / 0.9407 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004896/3.147, allocations: 290.8 kB / 0.941 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/3.147, allocations: 29.7 kB / 0.941 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/3.147, allocations: 226.6 kB / 0.9413 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.093e-05/3.147, allocations: 30.22 kB / 0.9413 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/3.147, allocations: 61.84 kB / 0.9413 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001911/3.147, allocations: 342.7 kB / 0.9417 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/3.147, allocations: 52.44 kB / 0.9417 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/3.148, allocations: 149.4 kB / 0.9419 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003155/3.148, allocations: 212 kB / 0.9421 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/3.148, allocations: 8 kB / 0.9421 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005865/3.149, allocations: 272.5 kB / 0.9423 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/3.149, allocations: 8 kB / 0.9423 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/3.149, allocations: 4.469 kB / 0.9423 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/3.15, allocations: 108.7 kB / 0.9424 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/3.15, allocations: 43.17 kB / 0.9425 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006078/3.151, allocations: 0.5682 MB / 0.943 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/3.151, allocations: 35.59 kB / 0.9431 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/3.151, allocations: 16.83 kB / 0.9431 GB, free: 11.37 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.0001944/3.151, allocations: 150 kB / 0.9432 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.721e-05/3.151, allocations: 23.72 kB / 0.9433 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005846/3.152, allocations: 174.5 kB / 0.9434 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/3.152, allocations: 3.094 kB / 0.9434 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/3.152, allocations: 4 kB / 0.9434 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/3.152, allocations: 1.172 kB / 0.9434 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004018/3.152, allocations: 309.4 kB / 0.9437 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/3.152, allocations: 0 / 0.9437 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.868e-05/3.152, allocations: 8 kB / 0.9437 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005134/3.153, allocations: 83.25 kB / 0.9438 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/3.153, allocations: 1.094 kB / 0.9438 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004484/3.153, allocations: 0.5694 MB / 0.9444 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/3.153, allocations: 0 / 0.9444 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005295/3.154, allocations: 170.5 kB / 0.9445 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/3.154, allocations: 104.8 kB / 0.9446 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/3.154, allocations: 4 kB / 0.9446 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.967e-05/3.154, allocations: 3.984 kB / 0.9446 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/3.154, allocations: 7.188 kB / 0.9446 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.423e-06/3.154, allocations: 5.203 kB / 0.9447 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002486/3.154, allocations: 209.9 kB / 0.9449 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.41e-07/3.154, allocations: 0 / 0.9449 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.006338/3.161, allocations: 1.6 MB / 0.9464 GB, free: 7.855 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.01053/3.171, allocations: 2.488 MB / 0.9488 GB, free: 5.668 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006785/3.172, allocations: 122.1 kB / 0.949 GB, free: 5.559 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/3.172, allocations: 4 kB / 0.949 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001922/3.172, allocations: 44.39 kB / 0.949 GB, free: 5.516 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006404/3.173, allocations: 69.52 kB / 0.9491 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/3.174, allocations: 462.2 kB / 0.9495 GB, free: 4.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005624/3.175, allocations: 0.7635 MB / 0.9503 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002135/3.175, allocations: 48.14 kB / 0.9503 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.881e-05/3.175, allocations: 27.42 kB / 0.9503 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of SimCode: time 1.203e-06/3.175, allocations: 0 / 0.9503 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of Templates: time 0.0727/3.248, allocations: 48.71 MB / 0.9979 GB, free: 3.473 MB / 0.8262 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)