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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8154/0.8154, allocations: 153.8 MB / 172.7 MB, free: 4.961 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004976/0.0004976, allocations: 11.97 kB / 249.8 MB, free: 4.527 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1712, allocations: 33.36 MB / 283.1 MB, free: 1.836 MB / 222.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.8/1.971, allocations: 307.4 MB / 0.5767 GB, free: 16.1 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03574/2.007, allocations: 34.95 MB / 0.6108 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003444/2.007, allocations: 3.094 kB / 0.6108 GB, free: 14.32 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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.0004554/2.008, allocations: 130.4 kB / 0.6109 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002611/2.008, allocations: 118.8 kB / 0.6111 GB, free: 14.18 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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.02816/2.036, allocations: 9.891 MB / 0.6207 GB, free: 8.547 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007039/2.037, allocations: 350.8 kB / 0.6211 GB, free: 8.203 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/2.037, allocations: 100.1 kB / 0.6212 GB, free: 8.109 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003098/2.037, allocations: 155.3 kB / 0.6213 GB, free: 7.957 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/2.038, allocations: 119.4 kB / 0.6214 GB, free: 7.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/2.038, allocations: 17.59 kB / 0.6214 GB, free: 7.824 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03657/2.074, allocations: 18 MB / 0.639 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000101/2.074, allocations: 43.8 kB / 0.639 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002486/2.074, allocations: 147.3 kB / 0.6392 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02589/2.1, allocations: 8.493 MB / 0.6475 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/2.1, allocations: 0 / 0.6475 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.653e-06/2.1, allocations: 0 / 0.6475 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.688e-06/2.1, allocations: 0 / 0.6475 GB, free: 13.1 MB / 0.5137 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.004584/2.105, allocations: 1.442 MB / 0.6489 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/2.105, allocations: 12.03 kB / 0.6489 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.807e-05/2.105, allocations: 62.53 kB / 0.649 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.497e-05/2.105, allocations: 27.81 kB / 0.649 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002551/2.105, allocations: 178.4 kB / 0.6492 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/2.105, allocations: 20.44 kB / 0.6492 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/2.105, allocations: 17.38 kB / 0.6492 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005243/2.106, allocations: 317.1 kB / 0.6495 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/2.106, allocations: 8 kB / 0.6495 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/2.106, allocations: 4 kB / 0.6495 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/2.106, allocations: 15.98 kB / 0.6495 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/2.106, allocations: 177.1 kB / 0.6497 GB, free: 10.74 MB / 0.5137 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.03593/2.142, allocations: 11.29 MB / 0.6607 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000467/2.143, allocations: 134.5 kB / 0.6608 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/2.143, allocations: 68.84 kB / 0.6609 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1453/2.288, allocations: 43.45 MB / 0.7033 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.489e-05/2.288, allocations: 34.55 kB / 0.7034 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.214e-06/2.288, allocations: 0 / 0.7034 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.0009629/2.289, allocations: 348.4 kB / 0.7037 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/2.289, allocations: 77.11 kB / 0.7038 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/2.289, allocations: 228.9 kB / 0.704 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/2.289, allocations: 26.73 kB / 0.704 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/2.29, allocations: 152.7 kB / 0.7042 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.35e-05/2.29, allocations: 115 kB / 0.7043 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.611e-05/2.29, allocations: 61.64 kB / 0.7043 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001636/2.29, allocations: 334.8 kB / 0.7047 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/2.29, allocations: 79.97 kB / 0.7047 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/2.29, allocations: 131.4 kB / 0.7049 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/2.291, allocations: 237.5 kB / 0.7051 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/2.291, allocations: 4 kB / 0.7051 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004831/2.291, allocations: 298.9 kB / 0.7054 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/2.291, allocations: 8.031 kB / 0.7054 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/2.291, allocations: 6.188 kB / 0.7054 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000931/2.292, allocations: 128.7 kB / 0.7055 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.176e-05/2.292, allocations: 23.98 kB / 0.7055 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005955/2.293, allocations: 0.6079 MB / 0.7061 GB, free: 0.5938 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001545/2.293, allocations: 36.64 kB / 0.7062 GB, free: 0.5586 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/2.293, allocations: 8 kB / 0.7062 GB, free: 0.5508 MB / 0.5606 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 0.0001612/2.293, allocations: 145.8 kB / 0.7063 GB, free: 408 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.335e-05/2.293, allocations: 27.75 kB / 0.7063 GB, free: 380 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/2.294, allocations: 0.5886 MB / 0.7069 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005507/2.295, allocations: 227.9 kB / 0.7071 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/2.295, allocations: 1.344 kB / 0.7071 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/2.295, allocations: 9.672 kB / 0.7071 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/2.296, allocations: 0.6938 MB / 0.7078 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/2.296, allocations: 7.922 kB / 0.7078 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.445e-05/2.296, allocations: 17 kB / 0.7078 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003773/2.296, allocations: 112.8 kB / 0.7079 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/2.296, allocations: 0 / 0.7079 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005859/2.297, allocations: 0.6443 MB / 0.7086 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/2.297, allocations: 0 / 0.7086 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006526/2.298, allocations: 349 kB / 0.7089 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.472e-05/2.298, allocations: 35.77 kB / 0.7089 GB, free: 13.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.761e-05/2.298, allocations: 15.89 kB / 0.709 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/2.298, allocations: 0.5 kB / 0.709 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.764e-05/2.298, allocations: 11.98 kB / 0.709 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/2.298, allocations: 11.88 kB / 0.709 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002723/2.298, allocations: 239.8 kB / 0.7092 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.298, allocations: 4 kB / 0.7092 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003364/2.302, allocations: 1.228 MB / 0.7104 GB, free: 12.02 MB / 0.5762 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.006227/2.308, allocations: 2.561 MB / 0.7129 GB, free: 9.465 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006556/2.308, allocations: 222.1 kB / 0.7131 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/2.308, allocations: 0 / 0.7131 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000263/2.309, allocations: 99.69 kB / 0.7132 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000765/2.309, allocations: 129.5 kB / 0.7133 GB, free: 9.039 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004605/2.314, allocations: 3.097 MB / 0.7164 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/2.314, allocations: 0.7675 MB / 0.7171 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001212/2.315, allocations: 25.02 kB / 0.7171 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/2.315, allocations: 99.41 kB / 0.7172 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of SimCode: time 7.01e-07/2.315, allocations: 0 / 0.7172 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09635/2.411, allocations: 48.68 MB / 0.7648 GB, free: 4.898 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.86/17.27, allocations: 11.67 kB / 0.7648 GB, free: 4.891 MB / 0.6231 GB " [Timeout remaining time 642] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.309933190932497] Failed to read output from testmodel.py, exit status != 0: 17.791874608956277 17.802075997 15.699241471 Calling exit ...