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 1.009/1.009, allocations: 150.9 MB / 166.4 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003792/0.0003794, allocations: 19.97 kB / 204.6 MB, free: 9.648 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2184, allocations: 31.34 MB / 236 MB, free: 5.406 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.TestDiaphragm): time 1.827/2.045, allocations: 294.8 MB / 0.5183 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6322/2.678, allocations: 190.1 MB / 0.7039 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005501/2.678, allocations: 8.219 kB / 0.7039 GB, free: 2.125 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.0002128/2.679, allocations: 42.31 kB / 0.704 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004557/2.679, allocations: 113.6 kB / 0.7041 GB, free: 2.125 MB / 0.5762 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.03566/2.715, allocations: 12.1 MB / 0.7159 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009933/2.716, allocations: 398.9 kB / 0.7163 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003772/2.716, allocations: 213.8 kB / 0.7165 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002732/2.716, allocations: 160.8 kB / 0.7166 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00028/2.717, allocations: 173.7 kB / 0.7168 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.523e-05/2.717, allocations: 35.59 kB / 0.7168 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04748/2.764, allocations: 20.74 MB / 0.7371 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002207/2.765, allocations: 80.12 kB / 0.7372 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003896/2.765, allocations: 183.9 kB / 0.7373 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03332/2.798, allocations: 10.39 MB / 0.7475 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/2.798, allocations: 0 / 0.7475 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.874e-06/2.798, allocations: 2.234 kB / 0.7475 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.698e-05/2.798, allocations: 0 / 0.7475 GB, free: 14.61 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00742/2.806, allocations: 1.871 MB / 0.7493 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/2.806, allocations: 10.12 kB / 0.7493 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.305e-05/2.806, allocations: 77.31 kB / 0.7494 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/2.806, allocations: 42.22 kB / 0.7494 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004132/2.806, allocations: 290.7 kB / 0.7497 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/2.807, allocations: 27.25 kB / 0.7497 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/2.807, allocations: 32.69 kB / 0.7498 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006071/2.807, allocations: 382 kB / 0.7501 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/2.807, allocations: 0 / 0.7501 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/2.807, allocations: 16.28 kB / 0.7501 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/2.807, allocations: 8.469 kB / 0.7502 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004183/2.808, allocations: 248.6 kB / 0.7504 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009369/2.817, allocations: 6.171 MB / 0.7564 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/2.817, allocations: 79.83 kB / 0.7565 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.425e-05/2.817, allocations: 26.77 kB / 0.7565 GB, free: 7.676 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3231/3.141, allocations: 154.7 MB / 0.9076 GB, free: 4.426 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/3.141, allocations: 33.75 kB / 0.9076 GB, free: 4.387 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 2.103e-06/3.141, allocations: 0 / 0.9076 GB, free: 4.387 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0009157/3.142, allocations: 246.8 kB / 0.9079 GB, free: 4.145 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/3.142, allocations: 83.48 kB / 0.908 GB, free: 4.047 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003889/3.142, allocations: 288.5 kB / 0.9082 GB, free: 3.816 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/3.142, allocations: 25.7 kB / 0.9083 GB, free: 3.785 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/3.142, allocations: 235.3 kB / 0.9085 GB, free: 3.59 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.787e-05/3.142, allocations: 31.8 kB / 0.9085 GB, free: 3.566 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/3.142, allocations: 60.48 kB / 0.9086 GB, free: 3.52 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001223/3.143, allocations: 336.9 kB / 0.9089 GB, free: 3.191 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/3.143, allocations: 43.14 kB / 0.9089 GB, free: 3.164 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/3.143, allocations: 172.6 kB / 0.9091 GB, free: 2.973 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/3.143, allocations: 205 kB / 0.9093 GB, free: 2.777 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/3.143, allocations: 0 / 0.9093 GB, free: 2.777 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000558/3.144, allocations: 285.9 kB / 0.9096 GB, free: 2.562 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/3.144, allocations: 4 kB / 0.9096 GB, free: 2.559 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/3.144, allocations: 4.547 kB / 0.9096 GB, free: 2.555 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009439/3.145, allocations: 107 kB / 0.9097 GB, free: 2.453 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/3.145, allocations: 53.47 kB / 0.9097 GB, free: 2.41 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004679/3.145, allocations: 0.569 MB / 0.9103 GB, free: 1.836 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/3.146, allocations: 36.92 kB / 0.9103 GB, free: 1.805 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/3.146, allocations: 12 kB / 0.9103 GB, free: 1.793 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.0001668/3.146, allocations: 142.1 kB / 0.9105 GB, free: 1.664 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.683e-05/3.146, allocations: 27.66 kB / 0.9105 GB, free: 1.637 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006003/3.146, allocations: 173.7 kB / 0.9107 GB, free: 1.488 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/3.146, allocations: 4 kB / 0.9107 GB, free: 1.484 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/3.146, allocations: 4 kB / 0.9107 GB, free: 1.48 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/3.146, allocations: 1.203 kB / 0.9107 GB, free: 1.48 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003633/3.147, allocations: 308.8 kB / 0.911 GB, free: 1.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/3.147, allocations: 0 / 0.911 GB, free: 1.18 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.052e-05/3.147, allocations: 8.609 kB / 0.911 GB, free: 1.172 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005157/3.147, allocations: 78.77 kB / 0.911 GB, free: 1.098 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/3.147, allocations: 6.312 kB / 0.9111 GB, free: 1.094 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000423/3.148, allocations: 0.5648 MB / 0.9116 GB, free: 0.5273 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/3.148, allocations: 0 / 0.9116 GB, free: 0.5273 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004769/3.148, allocations: 169.2 kB / 0.9118 GB, free: 376 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/3.149, allocations: 113.1 kB / 0.9119 GB, free: 248 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/3.149, allocations: 6.375 kB / 0.9119 GB, free: 244 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.111e-05/3.149, allocations: 0 / 0.9119 GB, free: 244 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.66e-05/3.149, allocations: 11.92 kB / 0.9119 GB, free: 232 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-06/3.149, allocations: 0.9375 kB / 0.9119 GB, free: 232 kB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002404/3.149, allocations: 209.3 kB / 0.9121 GB, free: 60 kB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/3.149, allocations: 0 / 0.9121 GB, free: 60 kB / 0.7481 GB Notification: Performance of remove unused functions: time 0.005588/3.155, allocations: 1.611 MB / 0.9137 GB, free: 14.56 MB / 0.7637 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.01128/3.166, allocations: 3.08 MB / 0.9167 GB, free: 11.84 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006515/3.167, allocations: 140.5 kB / 0.9168 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/3.167, allocations: 0 / 0.9168 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001713/3.167, allocations: 45.34 kB / 0.9169 GB, free: 11.7 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005492/3.167, allocations: 71.98 kB / 0.9169 GB, free: 11.65 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00896/3.176, allocations: 3.077 MB / 0.9199 GB, free: 8.715 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003977/3.177, allocations: 0.7647 MB / 0.9207 GB, free: 7.926 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002311/3.177, allocations: 46.89 kB / 0.9207 GB, free: 7.879 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/3.177, allocations: 96.59 kB / 0.9208 GB, free: 7.848 MB / 0.7637 GB Notification: Performance of SimCode: time 1.342e-06/3.177, allocations: 0 / 0.9208 GB, free: 7.848 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1037/3.281, allocations: 54.48 MB / 0.974 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.19/17.47, allocations: 0.625 kB / 0.974 GB, free: 1.488 MB / 0.8106 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)