Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00182/0.00182, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 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.002243/0.002243, allocations: 213.3 kB / 23.72 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.42/1.42, allocations: 230.6 MB / 257.5 MB, free: 7.809 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+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_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002412/0.002412, allocations: 43.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3025, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.0162/0.3187, allocations: 11.92 MB / 443 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01372/0.3324, allocations: 10.13 MB / 453.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.294e-05/0.3325, allocations: 7.875 kB / 453.1 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003513/0.3328, allocations: 55.66 kB / 453.2 MB, free: 460 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002927/0.3331, allocations: 87.38 kB / 453.3 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01242/0.3456, allocations: 5.04 MB / 458.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003569/0.3459, allocations: 238.9 kB / 458.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.74e-05/0.346, allocations: 5.641 kB / 458.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004314/0.3464, allocations: 187.4 kB / 458.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.3465, allocations: 71.7 kB / 458.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.3465, allocations: 11.94 kB / 458.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01189/0.3584, allocations: 6.969 MB / 465.8 MB, free: 3.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/0.3585, allocations: 27.86 kB / 465.8 MB, free: 3.812 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.719e-05/0.3586, allocations: 63.78 kB / 465.9 MB, free: 3.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006205/0.3648, allocations: 3.875 MB / 469.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.3648, allocations: 3.984 kB / 469.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3648, allocations: 0 / 469.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.3648, allocations: 0 / 469.7 MB, free: 15.86 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.004238/0.3691, allocations: 1.091 MB / 470.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.3691, allocations: 12.03 kB / 470.8 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.604e-05/0.3692, allocations: 50.58 kB / 470.9 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004711/0.3696, allocations: 52.84 kB / 470.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.3699, allocations: 166.3 kB / 471.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.197e-05/0.3699, allocations: 12.59 kB / 471.1 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.715e-05/0.37, allocations: 16.12 kB / 471.1 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.3713, allocations: 436.3 kB / 471.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.3713, allocations: 7.938 kB / 471.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.3713, allocations: 4 kB / 471.6 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.3713, allocations: 4 kB / 471.6 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.3727, allocations: 355.5 kB / 471.9 MB, free: 13.57 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.001425/0.3741, allocations: 1.028 MB / 473 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008656/0.375, allocations: 275.8 kB / 473.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002833/0.3753, allocations: 110.8 kB / 473.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08974/0.465, allocations: 26.12 MB / 499.4 MB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/0.4651, allocations: 42.55 kB / 499.5 MB, free: 1.855 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.834e-06/0.4651, allocations: 0 / 499.5 MB, free: 1.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.006709/0.4718, allocations: 1.5 MB / 0.4892 GB, free: 328 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/0.4719, allocations: 106.8 kB / 0.4894 GB, free: 196 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.472, allocations: 129.7 kB / 0.4895 GB, free: 56 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.472, allocations: 33.77 kB / 0.4895 GB, free: 16 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.66e-05/0.4721, allocations: 104.6 kB / 0.4896 GB, free: 15.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.4722, allocations: 126.9 kB / 0.4897 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.4723, allocations: 65.69 kB / 0.4898 GB, free: 15.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.4725, allocations: 330.8 kB / 0.4901 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003957/0.4729, allocations: 135.7 kB / 0.4902 GB, free: 15.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004482/0.4733, allocations: 202.7 kB / 0.4904 GB, free: 15.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008631/0.4742, allocations: 346.6 kB / 0.4908 GB, free: 14.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4742, allocations: 0 / 0.4908 GB, free: 14.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001095/0.4753, allocations: 422 kB / 0.4912 GB, free: 14.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.4753, allocations: 8 kB / 0.4912 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.4753, allocations: 3.984 kB / 0.4912 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002271/0.4755, allocations: 36.84 kB / 0.4912 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004682/0.476, allocations: 92.03 kB / 0.4913 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004387/0.4764, allocations: 0.5484 MB / 0.4918 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.4767, allocations: 24.02 kB / 0.4919 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.4767, allocations: 15.98 kB / 0.4919 GB, free: 13.49 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.0001561/0.4769, allocations: 133.8 kB / 0.492 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.766e-05/0.477, allocations: 15.91 kB / 0.492 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002283/0.4793, allocations: 1.506 MB / 0.4935 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/0.4793, allocations: 19.97 kB / 0.4935 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.4793, allocations: 4 kB / 0.4935 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.4793, allocations: 3.984 kB / 0.4935 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003103/0.4824, allocations: 1.966 MB / 0.4954 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.4824, allocations: 0 / 0.4954 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004428/0.4829, allocations: 87.98 kB / 0.4955 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002987/0.4832, allocations: 72.75 kB / 0.4956 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.595e-05/0.4832, allocations: 15.98 kB / 0.4956 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004154/0.4836, allocations: 0.5913 MB / 0.4962 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.4836, allocations: 8.125 kB / 0.4962 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.486, allocations: 1.741 MB / 0.4979 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.673e-05/0.4861, allocations: 55.47 kB / 0.4979 GB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.7e-05/0.4861, allocations: 8 kB / 0.4979 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003571/0.4865, allocations: 23.95 kB / 0.498 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.023e-05/0.4866, allocations: 31.94 kB / 0.498 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.758e-05/0.4866, allocations: 16 kB / 0.498 GB, free: 7.055 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.742e-05/0.4867, allocations: 95.2 kB / 0.4981 GB, free: 6.961 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4867, allocations: 3.938 kB / 0.4981 GB, free: 6.957 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00264/0.4893, allocations: 0.9709 MB / 0.4991 GB, free: 5.984 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.006879/0.4962, allocations: 3.339 MB / 0.5023 GB, free: 2.598 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.4977, allocations: 0.5927 MB / 0.5029 GB, free: 2.004 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.4978, allocations: 448 / 0.5029 GB, free: 2.004 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000846/0.4986, allocations: 485.1 kB / 0.5034 GB, free: 1.531 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007888/0.4994, allocations: 82.7 kB / 0.5034 GB, free: 1.453 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008066/0.5075, allocations: 3.952 MB / 0.5073 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.5077, allocations: 216.3 kB / 0.5075 GB, free: 13.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003993/0.5081, allocations: 141.7 kB / 0.5076 GB, free: 12.96 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/0.5084, allocations: 123.4 kB / 0.5078 GB, free: 12.84 MB / 430.1 MB Notification: Performance of SimCode: time 1.031e-06/0.5084, allocations: 0 / 0.5078 GB, free: 12.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2935/0.8019, allocations: 41.6 MB / 0.5484 GB, free: 85.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.41, allocations: 10.08 kB / 0.5484 GB, free: 85.57 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 Modelica_4_1_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.csv","/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_4.1.0_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.215479670994682]