Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 107.6 kB / 21.18 MB, free: 472 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 214.7 kB / 24.48 MB, free: 3.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 66.72 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2343, allocations: 49.15 MB / 396.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01347/0.2478, allocations: 11.84 MB / 408.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01308/0.2609, allocations: 10.14 MB / 418.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.261, allocations: 0 / 418.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003389/0.2613, allocations: 64.55 kB / 418.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003189/0.2616, allocations: 89.62 kB / 418.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01507/0.2767, allocations: 5.026 MB / 423.5 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003948/0.2771, allocations: 244.2 kB / 423.7 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.724e-05/0.2772, allocations: 6.016 kB / 423.7 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004774/0.2776, allocations: 180 kB / 423.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.2777, allocations: 64.69 kB / 424 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.188e-05/0.2778, allocations: 12.19 kB / 424 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01402/0.2918, allocations: 6.68 MB / 430.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.897e-05/0.2919, allocations: 23.91 kB / 430.7 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.292, allocations: 63.8 kB / 430.7 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009716/0.3017, allocations: 3.867 MB / 434.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3017, allocations: 0 / 434.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3017, allocations: 0 / 434.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.3018, allocations: 4 kB / 434.6 MB, free: 12.79 MB / 350.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.005093/0.3068, allocations: 1.083 MB / 435.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.3069, allocations: 11.98 kB / 435.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.168e-05/0.307, allocations: 50.73 kB / 435.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004942/0.3075, allocations: 52.8 kB / 435.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.3078, allocations: 162.3 kB / 436 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/0.3078, allocations: 12.38 kB / 436 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.3079, allocations: 20.12 kB / 436 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.3093, allocations: 435.4 kB / 436.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.3093, allocations: 4 kB / 436.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/0.3093, allocations: 8 kB / 436.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.3093, allocations: 4 kB / 436.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.3108, allocations: 355.5 kB / 436.8 MB, free: 10.5 MB / 350.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.001489/0.3123, allocations: 1.032 MB / 437.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009013/0.3132, allocations: 275.7 kB / 438.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002874/0.3135, allocations: 106.9 kB / 438.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08909/0.4025, allocations: 25.14 MB / 463.3 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.585e-05/0.4026, allocations: 38.56 kB / 463.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.843e-06/0.4026, allocations: 0 / 463.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.006702/0.4093, allocations: 1.521 MB / 464.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.986e-05/0.4094, allocations: 106.8 kB / 465 MB, free: 14.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.4095, allocations: 117.8 kB / 465.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.4095, allocations: 33.7 kB / 465.1 MB, free: 13.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/0.4096, allocations: 108.6 kB / 465.2 MB, free: 13.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.4097, allocations: 119 kB / 465.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.4098, allocations: 69.69 kB / 465.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.41, allocations: 326.8 kB / 465.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003951/0.4104, allocations: 139.9 kB / 465.9 MB, free: 13.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00044/0.4108, allocations: 198.5 kB / 466.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008342/0.4117, allocations: 338.6 kB / 466.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4117, allocations: 4 kB / 466.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001094/0.4128, allocations: 430 kB / 466.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.4128, allocations: 4 kB / 466.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.4128, allocations: 4 kB / 466.8 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002296/0.413, allocations: 41.05 kB / 466.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004613/0.4135, allocations: 87.88 kB / 467 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004191/0.4139, allocations: 0.5487 MB / 467.5 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002697/0.4142, allocations: 31.91 kB / 467.6 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.4142, allocations: 8 kB / 467.6 MB, free: 11.39 MB / 382.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.000158/0.4144, allocations: 141.9 kB / 467.7 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.788e-05/0.4145, allocations: 23.78 kB / 467.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002274/0.4167, allocations: 1.49 MB / 469.2 MB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.263e-05/0.4168, allocations: 19.97 kB / 469.2 MB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.4168, allocations: 0 / 469.2 MB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.4168, allocations: 3.938 kB / 469.2 MB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003095/0.4199, allocations: 1.986 MB / 471.2 MB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.4199, allocations: 8 kB / 471.2 MB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004314/0.4203, allocations: 79.86 kB / 471.3 MB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003188/0.4206, allocations: 72.75 kB / 471.4 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.62e-05/0.4207, allocations: 20.11 kB / 471.4 MB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004348/0.4211, allocations: 0.5875 MB / 472 MB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.4211, allocations: 7.969 kB / 472 MB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.4235, allocations: 1.737 MB / 473.7 MB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.4236, allocations: 47.58 kB / 473.8 MB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.4236, allocations: 8 kB / 473.8 MB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003513/0.424, allocations: 31.91 kB / 473.8 MB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.053e-05/0.424, allocations: 31.94 kB / 473.8 MB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/0.4241, allocations: 15.98 kB / 473.9 MB, free: 4.941 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.221e-05/0.4241, allocations: 95.27 kB / 474 MB, free: 4.848 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4241, allocations: 0 / 474 MB, free: 4.848 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002578/0.4267, allocations: 0.9631 MB / 474.9 MB, free: 3.883 MB / 382.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.006811/0.4335, allocations: 3.336 MB / 478.3 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.435, allocations: 0.601 MB / 478.9 MB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.435, allocations: 0 / 478.9 MB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008095/0.4358, allocations: 468.6 kB / 479.3 MB, free: 15.44 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007653/0.4365, allocations: 80.64 kB / 479.4 MB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007059/0.4436, allocations: 3.947 MB / 483.3 MB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.4438, allocations: 212.3 kB / 483.5 MB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003806/0.4442, allocations: 137.8 kB / 483.7 MB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002325/0.4444, allocations: 127.4 kB / 483.8 MB, free: 10.76 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.4444, allocations: 0 / 483.8 MB, free: 10.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0853/0.5297, allocations: 41.26 MB / 0.5128 GB, free: 1.367 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.78, allocations: 7.969 kB / 0.5128 GB, free: 1.359 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 17.431736828759313]