Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001528/0.001528, allocations: 110 kB / 20.43 MB, free: 1.453 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.001737/0.001737, allocations: 213.1 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 230.5 MB / 257.4 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 63.89 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2391, allocations: 53.41 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01786/0.257, allocations: 13.13 MB / 444.3 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01435/0.2713, allocations: 11.61 MB / 455.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.2714, allocations: 0 / 455.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003168/0.2718, allocations: 71.55 kB / 456 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003267/0.2721, allocations: 95.42 kB / 456.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0127/0.2848, allocations: 5.093 MB / 461.2 MB, free: 8.586 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003803/0.2852, allocations: 234.9 kB / 461.4 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.647e-05/0.2852, allocations: 9.641 kB / 461.4 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004549/0.2857, allocations: 199.4 kB / 461.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.2858, allocations: 79.62 kB / 461.7 MB, free: 8.066 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.2858, allocations: 8 kB / 461.7 MB, free: 8.059 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01305/0.2989, allocations: 7.013 MB / 468.7 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.244e-05/0.299, allocations: 31.91 kB / 468.7 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.2991, allocations: 67.67 kB / 468.8 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008864/0.308, allocations: 3.886 MB / 472.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.308, allocations: 0 / 472.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.308, allocations: 0 / 472.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.308, allocations: 0 / 472.7 MB, free: 13.05 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.004696/0.3127, allocations: 1.099 MB / 473.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3127, allocations: 8.031 kB / 473.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.657e-05/0.3128, allocations: 46.75 kB / 473.8 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004587/0.3133, allocations: 48.84 kB / 473.9 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003326/0.3136, allocations: 170.2 kB / 474 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.949e-05/0.3136, allocations: 12.66 kB / 474.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.3137, allocations: 16.12 kB / 474.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.3149, allocations: 392.5 kB / 474.5 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.3149, allocations: 3.938 kB / 474.5 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.315, allocations: 8 kB / 474.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.315, allocations: 4 kB / 474.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.3163, allocations: 355.6 kB / 474.8 MB, free: 10.81 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.001505/0.3178, allocations: 1.155 MB / 476 MB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000916/0.3187, allocations: 275.4 kB / 476.2 MB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002722/0.319, allocations: 106.9 kB / 476.3 MB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0862/0.4052, allocations: 26.01 MB / 0.4906 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.4053, allocations: 38.5 kB / 0.4906 GB, free: 15.06 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.534e-06/0.4053, allocations: 0 / 0.4906 GB, free: 15.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006768/0.412, allocations: 1.511 MB / 0.4921 GB, free: 13.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/0.4121, allocations: 106.8 kB / 0.4922 GB, free: 13.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.4122, allocations: 125.7 kB / 0.4923 GB, free: 13.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.941e-05/0.4123, allocations: 33.69 kB / 0.4923 GB, free: 13.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.177e-05/0.4123, allocations: 104.6 kB / 0.4924 GB, free: 13.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.4124, allocations: 126.9 kB / 0.4926 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.4126, allocations: 65.69 kB / 0.4926 GB, free: 12.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.4127, allocations: 334.8 kB / 0.493 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003824/0.4131, allocations: 139.6 kB / 0.4931 GB, free: 12.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004242/0.4135, allocations: 198.8 kB / 0.4933 GB, free: 12.22 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008083/0.4143, allocations: 342.6 kB / 0.4936 GB, free: 11.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4143, allocations: 0 / 0.4936 GB, free: 11.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001073/0.4154, allocations: 426.2 kB / 0.494 GB, free: 11.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.4154, allocations: 8 kB / 0.494 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4154, allocations: 3.938 kB / 0.494 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002414/0.4157, allocations: 36.83 kB / 0.4941 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004768/0.4161, allocations: 87.88 kB / 0.4941 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004262/0.4166, allocations: 0.5563 MB / 0.4947 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002812/0.4169, allocations: 19.98 kB / 0.4947 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.4169, allocations: 16 kB / 0.4947 GB, free: 10.68 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.0001607/0.4171, allocations: 137.7 kB / 0.4948 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.4172, allocations: 15.91 kB / 0.4949 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002228/0.4194, allocations: 1.504 MB / 0.4963 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-05/0.4194, allocations: 19.97 kB / 0.4964 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.4194, allocations: 4 kB / 0.4964 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.4194, allocations: 3.984 kB / 0.4964 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003128/0.4225, allocations: 2.006 MB / 0.4983 GB, free: 6.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.4226, allocations: 4 kB / 0.4983 GB, free: 6.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004282/0.423, allocations: 75.88 kB / 0.4984 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003149/0.4233, allocations: 76.91 kB / 0.4985 GB, free: 6.758 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.836e-05/0.4233, allocations: 16 kB / 0.4985 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004109/0.4237, allocations: 0.5913 MB / 0.4991 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.4238, allocations: 8.016 kB / 0.4991 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.4261, allocations: 1.737 MB / 0.5008 GB, free: 4.348 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.041e-05/0.4261, allocations: 47.53 kB / 0.5008 GB, free: 4.301 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.367e-05/0.4262, allocations: 20.03 kB / 0.5008 GB, free: 4.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000362/0.4266, allocations: 23.86 kB / 0.5008 GB, free: 4.258 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.815e-05/0.4266, allocations: 35.94 kB / 0.5009 GB, free: 4.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/0.4267, allocations: 16.36 kB / 0.5009 GB, free: 4.207 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.005e-05/0.4267, allocations: 91.22 kB / 0.501 GB, free: 4.117 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4267, allocations: 0 / 0.501 GB, free: 4.117 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002693/0.4294, allocations: 0.9747 MB / 0.5019 GB, free: 3.141 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.007141/0.4366, allocations: 3.338 MB / 0.5052 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.4381, allocations: 0.6082 MB / 0.5058 GB, free: 15.15 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.4381, allocations: 0 / 0.5058 GB, free: 15.15 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00081/0.4389, allocations: 477.3 kB / 0.5062 GB, free: 14.69 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007616/0.4396, allocations: 72.19 kB / 0.5063 GB, free: 14.62 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007348/0.447, allocations: 3.95 MB / 0.5102 GB, free: 10.51 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004572/0.4474, allocations: 0.8177 MB / 0.511 GB, free: 9.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003688/0.4478, allocations: 141.7 kB / 0.5111 GB, free: 9.523 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002357/0.448, allocations: 135.4 kB / 0.5112 GB, free: 9.391 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.448, allocations: 0 / 0.5112 GB, free: 9.391 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2739/0.7219, allocations: 41.37 MB / 0.5516 GB, free: 83.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/15.38, allocations: 11.5 kB / 0.5517 GB, free: 83.6 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.09908906999044]