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.001296/0.001296, allocations: 106.5 kB / 21.22 MB, free: 0.5273 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.001437/0.001437, allocations: 213.3 kB / 24.54 MB, free: 3.895 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.432/1.432, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] 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.001924/0.001924, allocations: 72.73 kB / 378.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2472, allocations: 53.37 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01733/0.2646, allocations: 13.13 MB / 445 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01515/0.2797, allocations: 11.61 MB / 456.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.2799, allocations: 0 / 456.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003812/0.2802, allocations: 75.55 kB / 456.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000306/0.2806, allocations: 83.44 kB / 456.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0142/0.2948, allocations: 5.098 MB / 461.9 MB, free: 8.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004203/0.2952, allocations: 238.9 kB / 462.1 MB, free: 8.559 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.155e-05/0.2952, allocations: 5.641 kB / 462.1 MB, free: 8.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004587/0.2957, allocations: 203.3 kB / 462.3 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.2958, allocations: 75.69 kB / 462.4 MB, free: 8.273 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.2958, allocations: 8 kB / 462.4 MB, free: 8.266 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01354/0.3094, allocations: 7.016 MB / 469.4 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.72e-05/0.3095, allocations: 23.92 kB / 469.5 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.3096, allocations: 71.66 kB / 469.5 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009704/0.3193, allocations: 3.89 MB / 473.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3193, allocations: 0 / 473.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3193, allocations: 0 / 473.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3193, allocations: 0 / 473.4 MB, free: 13.25 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.005097/0.3244, allocations: 1.103 MB / 474.5 MB, free: 12.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.3245, allocations: 8.031 kB / 474.5 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.326e-05/0.3246, allocations: 46.73 kB / 474.6 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005193/0.3251, allocations: 56.84 kB / 474.6 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.3254, allocations: 158.3 kB / 474.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.3254, allocations: 12.64 kB / 474.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.034e-05/0.3255, allocations: 20.12 kB / 474.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.3268, allocations: 384.8 kB / 475.2 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3268, allocations: 0 / 475.2 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.3268, allocations: 12 kB / 475.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3268, allocations: 4 kB / 475.2 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001405/0.3282, allocations: 359.5 kB / 475.6 MB, free: 11.01 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.001647/0.3299, allocations: 1.152 MB / 476.7 MB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008927/0.3308, allocations: 275.8 kB / 477 MB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002862/0.3311, allocations: 114.8 kB / 477.1 MB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08782/0.4189, allocations: 26 MB / 0.4913 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/0.4189, allocations: 42.55 kB / 0.4913 GB, free: 15.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.595e-06/0.4189, allocations: 0 / 0.4913 GB, free: 15.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.007087/0.426, allocations: 1.504 MB / 0.4928 GB, free: 13.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.373e-05/0.4261, allocations: 114.8 kB / 0.4929 GB, free: 13.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.4262, allocations: 125.7 kB / 0.493 GB, free: 13.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.841e-05/0.4263, allocations: 33.7 kB / 0.4931 GB, free: 13.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.534e-05/0.4264, allocations: 108.7 kB / 0.4932 GB, free: 13.31 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.4265, allocations: 122.9 kB / 0.4933 GB, free: 13.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.4266, allocations: 65.69 kB / 0.4934 GB, free: 13.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4268, allocations: 334.8 kB / 0.4937 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000399/0.4272, allocations: 135.7 kB / 0.4938 GB, free: 12.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004471/0.4276, allocations: 194.8 kB / 0.494 GB, free: 12.44 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008524/0.4285, allocations: 350.6 kB / 0.4943 GB, free: 12.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4285, allocations: 0 / 0.4943 GB, free: 12.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001164/0.4296, allocations: 426 kB / 0.4947 GB, free: 11.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.4296, allocations: 4 kB / 0.4947 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.4297, allocations: 7.984 kB / 0.4947 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002615/0.4299, allocations: 32.84 kB / 0.4948 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004808/0.4304, allocations: 88.03 kB / 0.4949 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004875/0.4309, allocations: 0.5562 MB / 0.4954 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002899/0.4312, allocations: 15.98 kB / 0.4954 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.486e-05/0.4312, allocations: 19.98 kB / 0.4954 GB, free: 10.89 MB / 414.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.0001926/0.4314, allocations: 138.4 kB / 0.4956 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.4315, allocations: 15.91 kB / 0.4956 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0025/0.434, allocations: 1.5 MB / 0.497 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.148e-05/0.4341, allocations: 23.97 kB / 0.4971 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.4341, allocations: 0 / 0.4971 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.4341, allocations: 4.016 kB / 0.4971 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/0.4375, allocations: 2.013 MB / 0.499 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/0.4375, allocations: 4 kB / 0.499 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000464/0.438, allocations: 83.86 kB / 0.4991 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003641/0.4383, allocations: 73.3 kB / 0.4992 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.622e-05/0.4384, allocations: 15.98 kB / 0.4992 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004668/0.4389, allocations: 0.5914 MB / 0.4998 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.4389, allocations: 3.938 kB / 0.4998 GB, free: 6.324 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002528/0.4414, allocations: 1.737 MB / 0.5015 GB, free: 4.559 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.4415, allocations: 55.56 kB / 0.5015 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.397e-05/0.4416, allocations: 12 kB / 0.5016 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003947/0.4419, allocations: 27.92 kB / 0.5016 GB, free: 4.465 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.4421, allocations: 35.88 kB / 0.5016 GB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/0.4421, allocations: 15.98 kB / 0.5016 GB, free: 4.414 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.665e-05/0.4422, allocations: 91.27 kB / 0.5017 GB, free: 4.324 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4422, allocations: 0 / 0.5017 GB, free: 4.324 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003167/0.4453, allocations: 0.9708 MB / 0.5027 GB, free: 3.352 MB / 414.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.008093/0.4534, allocations: 3.339 MB / 0.5059 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.4551, allocations: 0.6043 MB / 0.5065 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.4552, allocations: 448 / 0.5065 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009056/0.4561, allocations: 472.7 kB / 0.507 GB, free: 14.9 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008154/0.4569, allocations: 76.5 kB / 0.507 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008071/0.4649, allocations: 3.951 MB / 0.5109 GB, free: 10.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/0.4654, allocations: 0.8138 MB / 0.5117 GB, free: 9.867 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004102/0.4658, allocations: 137.8 kB / 0.5118 GB, free: 9.734 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/0.4661, allocations: 135.4 kB / 0.512 GB, free: 9.602 MB / 430.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4661, allocations: 0 / 0.512 GB, free: 9.602 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2995/0.7656, allocations: 41.35 MB / 0.5523 GB, free: 84.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.46/15.22, allocations: 15.52 kB / 0.5523 GB, free: 84.01 MB / 446.1 MB " [Timeout remaining time 645] (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 --stepSize=0.00019992 --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: 17.580674421973526] Failed to read output from testmodel.py, exit status != 0: ['time', 'V', 'medium.h', 'medium.p'] 15.346793923992664 15.364198416 15.04122311 Calling exit ...