Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001411/0.001411, allocations: 105 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001531/0.001531, allocations: 217.6 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.272/1.272, allocations: 230.5 MB / 256.4 MB, free: 8.414 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 63.84 kB / 376.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2158, allocations: 53.33 MB / 429.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01576/0.2316, allocations: 13.12 MB / 442.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.2444, allocations: 11.61 MB / 454.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.518e-05/0.2445, allocations: 7.938 kB / 454.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000284/0.2448, allocations: 67.56 kB / 454.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.245, allocations: 91.42 kB / 454.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01131/0.2563, allocations: 5.081 MB / 459.4 MB, free: 9.348 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003274/0.2567, allocations: 234.9 kB / 459.6 MB, free: 9.117 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.69e-05/0.2567, allocations: 9.453 kB / 459.6 MB, free: 9.105 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004045/0.2571, allocations: 199.3 kB / 459.8 MB, free: 8.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.2572, allocations: 79.67 kB / 459.9 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.2573, allocations: 8 kB / 459.9 MB, free: 8.824 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01161/0.2689, allocations: 7.009 MB / 466.9 MB, free: 1.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.315e-05/0.2689, allocations: 19.92 kB / 466.9 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.2691, allocations: 67.73 kB / 467 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006123/0.2752, allocations: 3.886 MB / 470.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2752, allocations: 0 / 470.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2752, allocations: 7.844 kB / 470.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.2752, allocations: 0 / 470.9 MB, free: 13.82 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.003997/0.2792, allocations: 1.167 MB / 472 MB, free: 12.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.2792, allocations: 8.031 kB / 472 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.877e-05/0.2793, allocations: 58.73 kB / 472.1 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004423/0.2797, allocations: 48.84 kB / 472.1 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002606/0.28, allocations: 220.1 kB / 472.4 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.28, allocations: 8.656 kB / 472.4 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.606e-05/0.2801, allocations: 20.12 kB / 472.4 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.2813, allocations: 388.8 kB / 472.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.2813, allocations: 4 kB / 472.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.372e-05/0.2813, allocations: 8 kB / 472.8 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2813, allocations: 4 kB / 472.8 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.2827, allocations: 355.5 kB / 473.1 MB, free: 11.43 MB / 382.1 MB 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.00133/0.284, allocations: 1.184 MB / 474.3 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008149/0.2849, allocations: 271.8 kB / 474.6 MB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002836/0.2851, allocations: 114.8 kB / 474.7 MB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09945/0.3846, allocations: 52.79 MB / 0.5151 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/0.3846, allocations: 38.56 kB / 0.5151 GB, free: 14.24 MB / 446.1 MB Notification: Performance of pre-optimization done (n=23): time 1.843e-06/0.3846, allocations: 3.938 kB / 0.5152 GB, free: 14.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=33): time 0.006511/0.3911, allocations: 1.588 MB / 0.5167 GB, free: 12.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.36e-05/0.3912, allocations: 110.8 kB / 0.5168 GB, free: 12.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.9e-05/0.3913, allocations: 121.8 kB / 0.5169 GB, free: 12.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.3913, allocations: 37.77 kB / 0.517 GB, free: 12.29 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.245e-05/0.3914, allocations: 100.6 kB / 0.5171 GB, free: 12.19 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.772e-05/0.3915, allocations: 126.9 kB / 0.5172 GB, free: 12.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.3916, allocations: 65.69 kB / 0.5172 GB, free: 11.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3917, allocations: 330.8 kB / 0.5176 GB, free: 11.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003755/0.3921, allocations: 135.6 kB / 0.5177 GB, free: 11.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004156/0.3925, allocations: 198.8 kB / 0.5179 GB, free: 11.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008012/0.3933, allocations: 354.5 kB / 0.5182 GB, free: 10.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3933, allocations: 0 / 0.5182 GB, free: 10.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001032/0.3944, allocations: 430 kB / 0.5186 GB, free: 10.51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.3944, allocations: 4 kB / 0.5186 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3944, allocations: 7.984 kB / 0.5186 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002057/0.3946, allocations: 32.84 kB / 0.5187 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004399/0.395, allocations: 92.03 kB / 0.5188 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003745/0.3954, allocations: 0.5523 MB / 0.5193 GB, free: 9.797 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/0.3957, allocations: 24.02 kB / 0.5193 GB, free: 9.773 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.3957, allocations: 19.98 kB / 0.5193 GB, free: 9.754 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001415/0.3958, allocations: 137.9 kB / 0.5195 GB, free: 9.609 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.152e-05/0.3959, allocations: 15.91 kB / 0.5195 GB, free: 9.594 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002042/0.398, allocations: 1.44 MB / 0.5209 GB, free: 8.141 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.08e-05/0.398, allocations: 19.97 kB / 0.5209 GB, free: 8.121 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.398, allocations: 8.031 kB / 0.5209 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.398, allocations: 3.984 kB / 0.5209 GB, free: 8.109 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002782/0.4008, allocations: 1.983 MB / 0.5229 GB, free: 6.055 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.4008, allocations: 4 kB / 0.5229 GB, free: 6.051 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004126/0.4012, allocations: 84.05 kB / 0.5229 GB, free: 5.969 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002709/0.4015, allocations: 68.73 kB / 0.523 GB, free: 5.898 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.218e-05/0.4015, allocations: 15.98 kB / 0.523 GB, free: 5.883 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003678/0.4019, allocations: 0.5875 MB / 0.5236 GB, free: 5.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.4019, allocations: 4.031 kB / 0.5236 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002134/0.404, allocations: 1.686 MB / 0.5252 GB, free: 3.551 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.655e-05/0.4041, allocations: 132.6 kB / 0.5254 GB, free: 3.402 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.136e-05/0.4041, allocations: 12 kB / 0.5254 GB, free: 3.391 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000342/0.4045, allocations: 19.97 kB / 0.5254 GB, free: 3.371 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.198e-05/0.4045, allocations: 35.89 kB / 0.5254 GB, free: 3.336 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.859e-05/0.4046, allocations: 23.98 kB / 0.5255 GB, free: 3.312 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.582e-05/0.4046, allocations: 95.2 kB / 0.5255 GB, free: 3.219 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4046, allocations: 0 / 0.5255 GB, free: 3.219 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002449/0.4071, allocations: 0.9747 MB / 0.5265 GB, free: 2.242 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005914/0.413, allocations: 3.272 MB / 0.5297 GB, free: 14.92 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.4143, allocations: 0.5888 MB / 0.5303 GB, free: 14.33 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4143, allocations: 4.125 kB / 0.5303 GB, free: 14.33 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007207/0.415, allocations: 452.6 kB / 0.5307 GB, free: 13.88 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007048/0.4157, allocations: 80.52 kB / 0.5308 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006252/0.422, allocations: 3.906 MB / 0.5346 GB, free: 9.742 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.4224, allocations: 0.8139 MB / 0.5354 GB, free: 8.898 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003147/0.4227, allocations: 145.8 kB / 0.5355 GB, free: 8.758 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.4229, allocations: 135.3 kB / 0.5357 GB, free: 8.625 MB / 462.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4229, allocations: 0 / 0.5357 GB, free: 8.625 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2246/0.6475, allocations: 40.78 MB / 0.5755 GB, free: 98.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/13.01, allocations: 2.812 kB / 0.5755 GB, free: 98.4 MB / 462.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.129556202999083]