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.001811/0.001811, allocations: 115.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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002309/0.002309, allocations: 204.9 kB / 23.72 MB, free: 4.535 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.492/1.492, allocations: 230.5 MB / 257.4 MB, free: 7.754 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.002803/0.002803, allocations: 67.89 kB / 377.7 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2761, allocations: 53.4 MB / 431.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01634/0.2924, allocations: 11.92 MB / 443 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01363/0.3061, allocations: 10.13 MB / 453.2 MB, free: 376 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.3062, allocations: 0 / 453.2 MB, free: 376 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003327/0.3065, allocations: 63.59 kB / 453.2 MB, free: 312 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003012/0.3068, allocations: 87.42 kB / 453.3 MB, free: 224 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01324/0.3201, allocations: 5.046 MB / 458.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003638/0.3204, allocations: 234.9 kB / 458.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.823e-05/0.3205, allocations: 9.641 kB / 458.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004234/0.3209, allocations: 187.3 kB / 458.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.321, allocations: 67.75 kB / 458.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.3211, allocations: 8 kB / 458.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01207/0.3331, allocations: 6.688 MB / 465.5 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.006e-05/0.3332, allocations: 27.91 kB / 465.6 MB, free: 3.953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.3333, allocations: 59.73 kB / 465.6 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007424/0.3408, allocations: 3.882 MB / 469.5 MB, free: 4 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3408, allocations: 0 / 469.5 MB, free: 4 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3408, allocations: 0 / 469.5 MB, free: 4 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.3408, allocations: 0 / 469.5 MB, free: 4 kB / 366.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.004353/0.3451, allocations: 1.095 MB / 470.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3452, allocations: 11.98 kB / 470.6 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.179e-05/0.3452, allocations: 46.73 kB / 470.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000455/0.3457, allocations: 52.84 kB / 470.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.3459, allocations: 166.3 kB / 470.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.346, allocations: 12.66 kB / 470.9 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.852e-05/0.346, allocations: 16.12 kB / 470.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.3473, allocations: 439.9 kB / 471.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.3473, allocations: 7.984 kB / 471.3 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.3474, allocations: 8 kB / 471.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3474, allocations: 4 kB / 471.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.3488, allocations: 355.5 kB / 471.7 MB, free: 13.7 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.001448/0.3502, allocations: 1.028 MB / 472.7 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008788/0.3511, allocations: 271.7 kB / 473 MB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002839/0.3514, allocations: 114.3 kB / 473.1 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09202/0.4434, allocations: 26.1 MB / 499.2 MB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.52e-05/0.4435, allocations: 46.5 kB / 499.3 MB, free: 2.004 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.883e-06/0.4435, allocations: 0 / 499.3 MB, free: 2.004 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.0068/0.4503, allocations: 1.504 MB / 0.489 GB, free: 472 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.305e-05/0.4504, allocations: 106.8 kB / 0.4891 GB, free: 340 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.4505, allocations: 125.7 kB / 0.4892 GB, free: 204 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.949e-05/0.4505, allocations: 33.7 kB / 0.4893 GB, free: 164 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.116e-05/0.4506, allocations: 112.6 kB / 0.4894 GB, free: 48 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.4507, allocations: 123.1 kB / 0.4895 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.4508, allocations: 69.69 kB / 0.4896 GB, free: 15.85 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.451, allocations: 326.6 kB / 0.4899 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004086/0.4514, allocations: 139.7 kB / 0.49 GB, free: 15.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004431/0.4518, allocations: 202.7 kB / 0.4902 GB, free: 15.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008414/0.4527, allocations: 338.6 kB / 0.4905 GB, free: 14.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.4527, allocations: 4 kB / 0.4905 GB, free: 14.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001119/0.4538, allocations: 426 kB / 0.4909 GB, free: 14.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.4538, allocations: 4 kB / 0.4909 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.4538, allocations: 4 kB / 0.4909 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002474/0.4541, allocations: 40.77 kB / 0.491 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004718/0.4545, allocations: 88.03 kB / 0.4911 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004523/0.455, allocations: 0.5446 MB / 0.4916 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002892/0.4553, allocations: 27.97 kB / 0.4916 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.4553, allocations: 8 kB / 0.4916 GB, free: 13.64 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.0001719/0.4555, allocations: 137.8 kB / 0.4918 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.4556, allocations: 19.89 kB / 0.4918 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002316/0.4579, allocations: 1.504 MB / 0.4933 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.758e-05/0.4579, allocations: 19.97 kB / 0.4933 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4579, allocations: 0 / 0.4933 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.458, allocations: 3.984 kB / 0.4933 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.4611, allocations: 1.97 MB / 0.4952 GB, free: 9.902 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.4611, allocations: 4 kB / 0.4952 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004476/0.4616, allocations: 91.98 kB / 0.4953 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003186/0.4619, allocations: 72.75 kB / 0.4954 GB, free: 9.734 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.462, allocations: 11.98 kB / 0.4954 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004386/0.4624, allocations: 0.5952 MB / 0.496 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.4624, allocations: 8.016 kB / 0.496 GB, free: 9.094 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/0.4648, allocations: 1.737 MB / 0.4977 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.496e-05/0.4649, allocations: 59.47 kB / 0.4977 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.027e-05/0.4649, allocations: 11.94 kB / 0.4977 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003592/0.4653, allocations: 24.03 kB / 0.4978 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.28e-05/0.4654, allocations: 31.94 kB / 0.4978 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.45e-05/0.4654, allocations: 16.36 kB / 0.4978 GB, free: 7.188 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.825e-05/0.4655, allocations: 95.2 kB / 0.4979 GB, free: 7.094 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4655, allocations: 0 / 0.4979 GB, free: 7.094 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003071/0.4685, allocations: 0.9669 MB / 0.4988 GB, free: 6.125 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.007312/0.4759, allocations: 3.338 MB / 0.5021 GB, free: 2.742 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.4773, allocations: 0.6004 MB / 0.5027 GB, free: 2.141 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.555e-06/0.4774, allocations: 4 kB / 0.5027 GB, free: 2.137 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008213/0.4782, allocations: 473.7 kB / 0.5031 GB, free: 1.676 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007975/0.479, allocations: 72.41 kB / 0.5032 GB, free: 1.605 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007795/0.4868, allocations: 3.961 MB / 0.5071 GB, free: 13.48 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.487, allocations: 212.3 kB / 0.5073 GB, free: 13.25 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004083/0.4874, allocations: 141.7 kB / 0.5074 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002465/0.4876, allocations: 127.4 kB / 0.5075 GB, free: 12.99 MB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4876, allocations: 0 / 0.5075 GB, free: 12.99 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2797/0.7674, allocations: 41.34 MB / 0.5479 GB, free: 85.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/15.52, allocations: 7.609 kB / 0.5479 GB, free: 85.73 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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_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.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_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.449946437962353]