Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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: "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_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.8089/0.8089, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004112/0.0004114, allocations: 14.67 kB / 236.5 MB, free: 2.082 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06627/0.0667, allocations: 31.35 MB / 267.9 MB, free: 7.625 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.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.625/1.692, allocations: 294.7 MB / 0.5494 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03878/1.73, allocations: 34.67 MB / 0.5833 GB, free: 10.26 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002573/1.731, allocations: 3.938 kB / 0.5833 GB, free: 10.25 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Diaphragm.mo:30:3-32:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Diaphragm.mo:33:3-35:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004602/1.731, allocations: 130 kB / 0.5834 GB, free: 10.13 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002882/1.731, allocations: 123.2 kB / 0.5835 GB, free: 10.01 MB / 478.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02404/1.755, allocations: 9.808 MB / 0.5931 GB, free: 192 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005392/1.756, allocations: 350.9 kB / 0.5934 GB, free: 15.84 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/1.756, allocations: 118.6 kB / 0.5935 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/1.756, allocations: 147.3 kB / 0.5937 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/1.757, allocations: 115.4 kB / 0.5938 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/1.757, allocations: 16 kB / 0.5938 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03098/1.788, allocations: 17.97 MB / 0.6113 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001213/1.788, allocations: 51.77 kB / 0.6114 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002246/1.788, allocations: 131.4 kB / 0.6115 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02001/1.808, allocations: 8.493 MB / 0.6198 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/1.808, allocations: 0 / 0.6198 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.054e-06/1.808, allocations: 0 / 0.6198 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.235e-06/1.808, allocations: 0 / 0.6198 GB, free: 4.777 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003867/1.812, allocations: 1.502 MB / 0.6213 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/1.812, allocations: 8.031 kB / 0.6213 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.095e-05/1.812, allocations: 66.53 kB / 0.6214 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.916e-05/1.812, allocations: 35.75 kB / 0.6214 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002156/1.812, allocations: 235.9 kB / 0.6216 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/1.812, allocations: 16.44 kB / 0.6216 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/1.812, allocations: 16 kB / 0.6216 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/1.813, allocations: 325 kB / 0.622 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/1.813, allocations: 4 kB / 0.622 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/1.813, allocations: 8 kB / 0.622 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/1.813, allocations: 11.98 kB / 0.622 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002461/1.813, allocations: 173 kB / 0.6221 GB, free: 2.258 MB / 0.4981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03575/1.849, allocations: 18.17 MB / 0.6399 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004564/1.849, allocations: 154.5 kB / 0.64 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/1.85, allocations: 84.84 kB / 0.6401 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3274/2.177, allocations: 77.92 MB / 0.7162 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/2.177, allocations: 30.56 kB / 0.7162 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.254e-06/2.177, allocations: 1.344 kB / 0.7162 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0008467/2.178, allocations: 430.3 kB / 0.7167 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/2.178, allocations: 79.66 kB / 0.7167 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/2.178, allocations: 218.2 kB / 0.7169 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/2.178, allocations: 25.7 kB / 0.717 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.558e-05/2.178, allocations: 165.5 kB / 0.7171 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.049e-05/2.178, allocations: 114 kB / 0.7172 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.08e-05/2.178, allocations: 56.02 kB / 0.7173 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.991e-05/2.178, allocations: 333.2 kB / 0.7176 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.999e-05/2.179, allocations: 77.19 kB / 0.7177 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/2.179, allocations: 128.5 kB / 0.7178 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/2.179, allocations: 222.8 kB / 0.718 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/2.179, allocations: 0 / 0.718 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003839/2.179, allocations: 322.3 kB / 0.7183 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/2.179, allocations: 5.906 kB / 0.7183 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/2.179, allocations: 2.031 kB / 0.7183 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008229/2.18, allocations: 131.3 kB / 0.7185 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.896e-05/2.18, allocations: 19.84 kB / 0.7185 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003673/2.181, allocations: 0.6132 MB / 0.7191 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/2.181, allocations: 34.11 kB / 0.7191 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/2.181, allocations: 5.312 kB / 0.7191 GB, free: 210.1 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 9.964e-05/2.181, allocations: 148 kB / 0.7192 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/2.181, allocations: 19.92 kB / 0.7193 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000732/2.182, allocations: 0.6048 MB / 0.7199 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004434/2.182, allocations: 228.5 kB / 0.7201 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/2.182, allocations: 4.734 kB / 0.7201 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/2.182, allocations: 4 kB / 0.7201 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008601/2.183, allocations: 0.7304 MB / 0.7208 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/2.183, allocations: 0 / 0.7208 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.023e-05/2.183, allocations: 28.36 kB / 0.7208 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002963/2.183, allocations: 110 kB / 0.7209 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/2.183, allocations: 2.562 kB / 0.7209 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003239/2.184, allocations: 0.6392 MB / 0.7216 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/2.184, allocations: 0 / 0.7216 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004933/2.184, allocations: 351.4 kB / 0.7219 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.11e-05/2.184, allocations: 108.7 kB / 0.722 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/2.184, allocations: 14.86 kB / 0.722 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/2.184, allocations: 3.156 kB / 0.722 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.872e-05/2.185, allocations: 10.56 kB / 0.722 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/2.185, allocations: 9.125 kB / 0.722 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001898/2.185, allocations: 239.5 kB / 0.7223 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/2.185, allocations: 0 / 0.7223 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00286/2.188, allocations: 1.222 MB / 0.7235 GB, free: 208.4 MB / 0.5919 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 (13): * Single equations (assignments): 12 * 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.005323/2.193, allocations: 2.565 MB / 0.726 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006129/2.194, allocations: 251.7 kB / 0.7262 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/2.194, allocations: 0 / 0.7262 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002282/2.194, allocations: 103.7 kB / 0.7263 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007095/2.195, allocations: 126.9 kB / 0.7264 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003932/2.198, allocations: 3.098 MB / 0.7294 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001751/2.199, allocations: 0.7691 MB / 0.7302 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001254/2.199, allocations: 19.64 kB / 0.7302 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/2.199, allocations: 101.3 kB / 0.7303 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of SimCode: time 3.91e-07/2.199, allocations: 0 / 0.7303 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06879/2.268, allocations: 48.24 MB / 0.7774 GB, free: 169.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/15.48, allocations: 10.73 kB / 0.7774 GB, free: 169.9 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)