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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7607/0.7607, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003058/0.0003058, allocations: 16.23 kB / 236.6 MB, free: 2.012 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04945/0.04977, allocations: 31.35 MB / 267.9 MB, free: 7.562 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.502/1.551, allocations: 294.8 MB / 0.5496 GB, free: 12.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.477/2.029, allocations: 190.1 MB / 0.7352 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002195/2.029, allocations: 8.875 kB / 0.7352 GB, free: 1.809 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.0001239/2.029, allocations: 40.39 kB / 0.7352 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002754/2.029, allocations: 112.9 kB / 0.7354 GB, free: 1.809 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.02845/2.058, allocations: 12.34 MB / 0.7474 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004886/2.058, allocations: 399.5 kB / 0.7478 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/2.058, allocations: 204.6 kB / 0.748 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/2.059, allocations: 162.1 kB / 0.7481 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001706/2.059, allocations: 178.3 kB / 0.7483 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.607e-05/2.059, allocations: 32.94 kB / 0.7483 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03292/2.092, allocations: 21.01 MB / 0.7689 GB, free: 400 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001191/2.092, allocations: 78.28 kB / 0.7689 GB, free: 388 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002424/2.092, allocations: 181.2 kB / 0.7691 GB, free: 380 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02485/2.117, allocations: 10.46 MB / 0.7793 GB, free: 12.81 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/2.117, allocations: 0 / 0.7793 GB, free: 12.81 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.154e-06/2.117, allocations: 0.875 kB / 0.7793 GB, free: 12.81 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.011e-05/2.117, allocations: 0 / 0.7793 GB, free: 12.81 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.005316/2.122, allocations: 1.94 MB / 0.7812 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/2.122, allocations: 14.81 kB / 0.7812 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.6e-05/2.123, allocations: 70.09 kB / 0.7813 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/2.123, allocations: 43.91 kB / 0.7813 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004207/2.123, allocations: 311.5 kB / 0.7816 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/2.123, allocations: 25.16 kB / 0.7817 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/2.123, allocations: 43.12 kB / 0.7817 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005488/2.124, allocations: 382.3 kB / 0.7821 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/2.124, allocations: 2.031 kB / 0.7821 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.095e-05/2.124, allocations: 14.59 kB / 0.7821 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/2.124, allocations: 10.12 kB / 0.7821 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000385/2.124, allocations: 245.6 kB / 0.7823 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008044/2.132, allocations: 6.161 MB / 0.7883 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001795/2.132, allocations: 80.34 kB / 0.7884 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.991e-05/2.133, allocations: 25.77 kB / 0.7884 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3104/2.443, allocations: 155.7 MB / 0.9405 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/2.443, allocations: 30.56 kB / 0.9405 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.034e-06/2.443, allocations: 1.203 kB / 0.9405 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0007538/2.444, allocations: 248.5 kB / 0.9407 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/2.444, allocations: 77.11 kB / 0.9408 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/2.444, allocations: 302.8 kB / 0.9411 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/2.444, allocations: 25.7 kB / 0.9411 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/2.444, allocations: 239 kB / 0.9413 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.26e-05/2.444, allocations: 27.78 kB / 0.9414 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.468e-05/2.444, allocations: 57.89 kB / 0.9414 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001018/2.445, allocations: 342.8 kB / 0.9417 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/2.445, allocations: 53.47 kB / 0.9418 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/2.445, allocations: 156.1 kB / 0.9419 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/2.445, allocations: 209.3 kB / 0.9421 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/2.445, allocations: 4 kB / 0.9422 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005049/2.446, allocations: 280.8 kB / 0.9424 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/2.446, allocations: 8 kB / 0.9424 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/2.446, allocations: 4.781 kB / 0.9424 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009039/2.447, allocations: 112.1 kB / 0.9425 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/2.447, allocations: 39.17 kB / 0.9426 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004072/2.447, allocations: 0.571 MB / 0.9431 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/2.447, allocations: 32.94 kB / 0.9432 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/2.447, allocations: 15.98 kB / 0.9432 GB, free: 10.63 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.0001422/2.448, allocations: 152.8 kB / 0.9433 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.472e-05/2.448, allocations: 27.8 kB / 0.9434 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005409/2.448, allocations: 179.3 kB / 0.9435 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/2.448, allocations: 0 / 0.9435 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/2.448, allocations: 0 / 0.9435 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/2.448, allocations: 0 / 0.9435 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002808/2.449, allocations: 297.5 kB / 0.9438 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/2.449, allocations: 5.203 kB / 0.9438 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.096e-05/2.449, allocations: 11.94 kB / 0.9438 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004843/2.449, allocations: 84.67 kB / 0.9439 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/2.449, allocations: 0 / 0.9439 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003743/2.449, allocations: 0.5693 MB / 0.9445 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/2.449, allocations: 0 / 0.9445 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004613/2.45, allocations: 169.8 kB / 0.9446 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.883e-05/2.45, allocations: 112.8 kB / 0.9447 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.794e-05/2.45, allocations: 3.094 kB / 0.9447 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.452e-05/2.45, allocations: 13.25 kB / 0.9447 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/2.45, allocations: 4 kB / 0.9448 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/2.45, allocations: 4.891 kB / 0.9448 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002012/2.45, allocations: 209.9 kB / 0.945 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/2.45, allocations: 0 / 0.945 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.003958/2.454, allocations: 1.621 MB / 0.9465 GB, free: 7.082 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.008278/2.463, allocations: 3.107 MB / 0.9496 GB, free: 4.258 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004237/2.463, allocations: 137.3 kB / 0.9497 GB, free: 4.137 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/2.463, allocations: 0 / 0.9497 GB, free: 4.137 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001389/2.463, allocations: 43.16 kB / 0.9497 GB, free: 4.098 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/2.464, allocations: 79.66 kB / 0.9498 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004943/2.469, allocations: 3.095 MB / 0.9528 GB, free: 0.7891 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/2.469, allocations: 0.7635 MB / 0.9536 GB, free: 0 / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001467/2.469, allocations: 46.95 kB / 0.9536 GB, free: 15.95 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/2.469, allocations: 99.41 kB / 0.9537 GB, free: 15.85 MB / 0.795 GB Notification: Performance of SimCode: time 1.252e-06/2.469, allocations: 0 / 0.9537 GB, free: 15.85 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08218/2.551, allocations: 54.57 MB / 1.007 GB, free: 9.434 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/15.57, allocations: 3.938 kB / 1.007 GB, free: 9.43 MB / 0.8419 GB (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 & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)