Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009279/0.0009279, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8479/0.8479, allocations: 173.4 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.869e-05/2.004e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.009859/0.009879, allocations: 11.79 MB / 330.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00898/0.01886, allocations: 10.14 MB / 340.3 MB, free: 360 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.01899, allocations: 7.938 kB / 340.3 MB, free: 352 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003542/0.01934, allocations: 67.53 kB / 340.4 MB, free: 284 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000295/0.01964, allocations: 83.36 kB / 340.5 MB, free: 200 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01018/0.02982, allocations: 5.093 MB / 345.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003246/0.03014, allocations: 238.8 kB / 345.8 MB, free: 10.87 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.099e-05/0.03019, allocations: 5.641 kB / 345.8 MB, free: 10.86 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000375/0.03057, allocations: 219.3 kB / 346 MB, free: 10.64 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.03067, allocations: 59.86 kB / 346.1 MB, free: 10.59 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.218e-05/0.0307, allocations: 8 kB / 346.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008295/0.03899, allocations: 6.672 MB / 352.8 MB, free: 3.898 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.81e-05/0.03907, allocations: 35.83 kB / 352.8 MB, free: 3.863 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.533e-05/0.03915, allocations: 55.91 kB / 352.9 MB, free: 3.809 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005676/0.04482, allocations: 4.974 MB / 357.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.04483, allocations: 4 kB / 357.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.04483, allocations: 4 kB / 357.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.04483, allocations: 0 / 357.8 MB, free: 14.82 MB / 330.7 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.002479/0.04731, allocations: 1.08 MB / 358.9 MB, free: 13.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.04735, allocations: 8.922 kB / 358.9 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.391e-05/0.0474, allocations: 50.73 kB / 359 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002566/0.04765, allocations: 52.8 kB / 359 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002589/0.04791, allocations: 161.5 kB / 359.2 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.04794, allocations: 12.66 kB / 359.2 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.91e-05/0.04798, allocations: 16.38 kB / 359.2 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007192/0.0487, allocations: 440.8 kB / 359.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.04872, allocations: 7.938 kB / 359.7 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.04875, allocations: 4 kB / 359.7 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.04876, allocations: 4 kB / 359.7 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007317/0.04949, allocations: 351.5 kB / 360 MB, free: 12.54 MB / 330.7 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.0009046/0.05039, allocations: 1.039 MB / 361.1 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004518/0.05084, allocations: 267.8 kB / 361.3 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.051, allocations: 114.4 kB / 361.4 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04277/0.09377, allocations: 25.14 MB / 386.6 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.09381, allocations: 38.56 kB / 386.6 MB, free: 1.801 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.324e-06/0.09381, allocations: 0 / 386.6 MB, free: 1.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.003771/0.09758, allocations: 1.519 MB / 388.1 MB, free: 252 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.09763, allocations: 110.8 kB / 388.2 MB, free: 116 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.504e-05/0.09772, allocations: 121.8 kB / 388.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.09775, allocations: 29.7 kB / 388.4 MB, free: 15.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.93e-05/0.0978, allocations: 104.6 kB / 388.5 MB, free: 15.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.189e-05/0.09787, allocations: 126.9 kB / 388.6 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.462e-05/0.09796, allocations: 65.75 kB / 388.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.999e-05/0.09805, allocations: 326.8 kB / 389 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002201/0.09827, allocations: 131.9 kB / 389.1 MB, free: 15.19 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002457/0.09851, allocations: 198.5 kB / 389.3 MB, free: 14.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004755/0.09899, allocations: 350.6 kB / 389.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.09899, allocations: 0 / 389.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006356/0.09963, allocations: 434 kB / 390.1 MB, free: 14.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.09965, allocations: 8 kB / 390.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.09965, allocations: 3.938 kB / 390.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001731/0.09983, allocations: 40.83 kB / 390.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002432/0.1001, allocations: 87.88 kB / 390.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003003/0.1004, allocations: 0.5486 MB / 390.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.1005, allocations: 23.92 kB / 390.8 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.719e-05/0.1005, allocations: 19.98 kB / 390.8 MB, free: 13.41 MB / 362.7 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.0003738/0.1009, allocations: 133.8 kB / 390.9 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.79e-05/0.101, allocations: 15.91 kB / 391 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.1023, allocations: 1.498 MB / 392.5 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.1023, allocations: 19.97 kB / 392.5 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.1023, allocations: 7.938 kB / 392.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.1024, allocations: 4 kB / 392.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001968/0.1043, allocations: 1.987 MB / 394.5 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.1043, allocations: 0 / 394.5 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.1046, allocations: 83.98 kB / 394.6 MB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000201/0.1048, allocations: 80.69 kB / 394.6 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.1048, allocations: 15.98 kB / 394.6 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002603/0.105, allocations: 0.5876 MB / 395.2 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.105, allocations: 0 / 395.2 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.1065, allocations: 1.741 MB / 397 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.975e-05/0.1066, allocations: 59.56 kB / 397 MB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.1066, allocations: 8 kB / 397 MB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.1068, allocations: 19.98 kB / 397.1 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.214e-05/0.1069, allocations: 39.81 kB / 397.1 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.1069, allocations: 19.98 kB / 397.1 MB, free: 6.961 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.543e-05/0.1069, allocations: 87.28 kB / 397.2 MB, free: 6.875 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1069, allocations: 0 / 397.2 MB, free: 6.875 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002693/0.1096, allocations: 0.9708 MB / 398.2 MB, free: 5.902 MB / 362.7 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.005229/0.1149, allocations: 3.461 MB / 401.6 MB, free: 2.395 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009162/0.1158, allocations: 0.6039 MB / 402.2 MB, free: 1.789 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1158, allocations: 0 / 402.2 MB, free: 1.789 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000491/0.1163, allocations: 473.9 kB / 402.7 MB, free: 1.328 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.1168, allocations: 83.52 kB / 402.8 MB, free: 1.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004665/0.1215, allocations: 3.842 MB / 406.6 MB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001542/0.1216, allocations: 216.3 kB / 406.8 MB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002589/0.1219, allocations: 134 kB / 407 MB, free: 12.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.122, allocations: 128.4 kB / 407.1 MB, free: 12.76 MB / 378.7 MB Notification: Performance of SimCode: time 1.303e-06/0.122, allocations: 0 / 407.1 MB, free: 12.76 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0616/0.1836, allocations: 41.5 MB / 448.6 MB, free: 3.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.089/9.273, allocations: 14.05 kB / 448.6 MB, free: 3.402 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 11.355597082525492]