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.0008779/0.0008779, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001058/0.001058, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9071/0.9071, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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 1.623e-06/1.623e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.906e-05/2.068e-05, allocations: 8.672 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.009826/0.009846, allocations: 11.92 MB / 336.5 MB, free: 3.984 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007504/0.01735, allocations: 10.13 MB / 346.6 MB, free: 9.816 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.324e-05/0.01741, allocations: 0 / 346.6 MB, free: 9.816 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.01769, allocations: 67.47 kB / 346.7 MB, free: 9.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.01791, allocations: 79.42 kB / 346.7 MB, free: 9.672 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007556/0.02547, allocations: 5.111 MB / 351.8 MB, free: 4.562 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002301/0.0257, allocations: 238.8 kB / 352.1 MB, free: 4.328 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.973e-05/0.02574, allocations: 5.641 kB / 352.1 MB, free: 4.316 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003027/0.02604, allocations: 215.3 kB / 352.3 MB, free: 4.105 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.176e-05/0.02612, allocations: 71.8 kB / 352.4 MB, free: 4.035 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.02614, allocations: 8 kB / 352.4 MB, free: 4.027 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006942/0.03308, allocations: 6.692 MB / 359.1 MB, free: 13.33 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.516e-05/0.03314, allocations: 39.89 kB / 359.1 MB, free: 13.29 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.307e-05/0.03319, allocations: 47.92 kB / 359.2 MB, free: 13.24 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004107/0.0373, allocations: 4.982 MB / 364.1 MB, free: 8.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.0373, allocations: 0 / 364.1 MB, free: 8.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.0373, allocations: 3.938 kB / 364.1 MB, free: 8.246 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.03731, allocations: 4 kB / 364.1 MB, free: 8.242 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.002388/0.0397, allocations: 1.084 MB / 365.2 MB, free: 7.125 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.03974, allocations: 8.031 kB / 365.2 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.569e-05/0.03978, allocations: 50.73 kB / 365.3 MB, free: 7.059 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002512/0.04003, allocations: 48.84 kB / 365.3 MB, free: 7.012 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.04028, allocations: 165.5 kB / 365.5 MB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.04031, allocations: 12.66 kB / 365.5 MB, free: 6.812 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.515e-05/0.04035, allocations: 12.38 kB / 365.5 MB, free: 6.801 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000713/0.04106, allocations: 444.7 kB / 365.9 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.04107, allocations: 7.938 kB / 366 MB, free: 6.316 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.355e-05/0.0411, allocations: 4 kB / 366 MB, free: 6.312 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.0411, allocations: 4 kB / 366 MB, free: 6.309 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007028/0.04181, allocations: 363.5 kB / 366.3 MB, free: 5.953 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.0008515/0.04266, allocations: 1.024 MB / 367.3 MB, free: 4.859 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004548/0.04311, allocations: 275.7 kB / 367.6 MB, free: 4.562 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001501/0.04326, allocations: 110.5 kB / 367.7 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04274/0.086, allocations: 26.1 MB / 393.8 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.08603, allocations: 38.56 kB / 393.9 MB, free: 10.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.08603, allocations: 0 / 393.9 MB, free: 10.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.003554/0.08958, allocations: 1.502 MB / 395.4 MB, free: 8.734 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.08962, allocations: 106.8 kB / 395.5 MB, free: 8.605 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.27e-05/0.0897, allocations: 129.7 kB / 395.6 MB, free: 8.469 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.08972, allocations: 29.7 kB / 395.6 MB, free: 8.434 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.83e-05/0.08977, allocations: 104.6 kB / 395.7 MB, free: 8.328 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.89e-05/0.08984, allocations: 126.9 kB / 395.8 MB, free: 8.203 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.978e-05/0.08992, allocations: 65.69 kB / 395.9 MB, free: 8.133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.078e-05/0.08999, allocations: 322.8 kB / 396.2 MB, free: 7.809 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.0902, allocations: 143.7 kB / 396.4 MB, free: 7.668 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.09044, allocations: 194.8 kB / 396.6 MB, free: 7.453 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000458/0.0909, allocations: 354.6 kB / 396.9 MB, free: 7.082 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.0909, allocations: 0 / 396.9 MB, free: 7.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006632/0.09156, allocations: 430.1 kB / 397.3 MB, free: 6.652 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.09157, allocations: 12.03 kB / 397.3 MB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.09158, allocations: 0 / 397.3 MB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001435/0.09172, allocations: 36.83 kB / 397.4 MB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.09196, allocations: 87.88 kB / 397.5 MB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002464/0.0922, allocations: 0.5488 MB / 398 MB, free: 5.941 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.09233, allocations: 32 kB / 398 MB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.09235, allocations: 12 kB / 398 MB, free: 5.898 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 9.63e-05/0.09245, allocations: 137.7 kB / 398.2 MB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.487e-05/0.0925, allocations: 27.83 kB / 398.2 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.09378, allocations: 1.491 MB / 399.7 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.09379, allocations: 20 kB / 399.7 MB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.0938, allocations: 7.938 kB / 399.7 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.0938, allocations: 3.984 kB / 399.7 MB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001714/0.09552, allocations: 1.975 MB / 401.7 MB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.09552, allocations: 0 / 401.7 MB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002078/0.09573, allocations: 83.86 kB / 401.8 MB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001701/0.0959, allocations: 72.92 kB / 401.9 MB, free: 2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.09592, allocations: 19.92 kB / 401.9 MB, free: 1.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002204/0.09614, allocations: 0.5914 MB / 402.5 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.09614, allocations: 0 / 402.5 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.09746, allocations: 1.742 MB / 404.2 MB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.09749, allocations: 51.52 kB / 404.3 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.09752, allocations: 8 kB / 404.3 MB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.09777, allocations: 20.03 kB / 404.3 MB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.166e-05/0.09782, allocations: 43.81 kB / 404.3 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.09784, allocations: 15.98 kB / 404.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.363e-05/0.09788, allocations: 91.27 kB / 404.4 MB, free: 15.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.09788, allocations: 0 / 404.4 MB, free: 15.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001561/0.09944, allocations: 0.9747 MB / 405.4 MB, free: 14.38 MB / 378.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.003852/0.1033, allocations: 3.474 MB / 408.9 MB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007864/0.1041, allocations: 0.6124 MB / 409.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1041, allocations: 0 / 409.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004372/0.1045, allocations: 473.6 kB / 410 MB, free: 9.801 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.105, allocations: 76.14 kB / 410 MB, free: 9.727 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003895/0.1089, allocations: 3.853 MB / 413.9 MB, free: 5.707 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001334/0.109, allocations: 216.3 kB / 414.1 MB, free: 5.477 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000219/0.1092, allocations: 129.8 kB / 414.2 MB, free: 5.348 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.1094, allocations: 132.4 kB / 414.4 MB, free: 5.219 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.1094, allocations: 0 / 414.4 MB, free: 5.219 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1996/0.309, allocations: 41.59 MB / 455.9 MB, free: 120.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.579/9.888, allocations: 3.969 kB / 455.9 MB, free: 120.2 MB / 410.7 MB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/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: 11.890192381106317]