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.000852/0.000852, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.004674/0.004674, allocations: 165.6 kB / 24.7 MB, free: 8.887 MB / 18.57 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 0.8572/0.8572, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 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: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 298.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.646e-05/1.801e-05, allocations: 2.281 kB / 298.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.1389/0.139, allocations: 11.8 MB / 310.2 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008042/0.147, allocations: 10.13 MB / 320.3 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.1471, allocations: 5.156 kB / 320.3 MB, free: 3.156 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003213/0.1475, allocations: 66.88 kB / 320.4 MB, free: 3.121 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003073/0.1478, allocations: 88.48 kB / 320.5 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0128/0.1606, allocations: 5.091 MB / 325.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003577/0.1609, allocations: 235.4 kB / 325.8 MB, free: 15.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.153e-05/0.161, allocations: 6.141 kB / 325.8 MB, free: 15.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003886/0.1614, allocations: 218.9 kB / 326 MB, free: 15.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.1615, allocations: 59.48 kB / 326.1 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.1615, allocations: 11.59 kB / 326.1 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01018/0.1717, allocations: 6.68 MB / 332.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.951e-05/0.1718, allocations: 31.16 kB / 332.8 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.1719, allocations: 52.34 kB / 332.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009063/0.181, allocations: 4.973 MB / 337.8 MB, free: 7.457 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.181, allocations: 0 / 337.8 MB, free: 7.457 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.181, allocations: 0 / 337.8 MB, free: 7.457 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.181, allocations: 4 kB / 337.8 MB, free: 7.453 MB / 298.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.003093/0.1841, allocations: 1.083 MB / 338.9 MB, free: 6.336 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.1841, allocations: 15.98 kB / 338.9 MB, free: 6.32 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.076e-05/0.1842, allocations: 46.73 kB / 339 MB, free: 6.266 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003541/0.1845, allocations: 52.84 kB / 339 MB, free: 6.215 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.1849, allocations: 167.2 kB / 339.2 MB, free: 6.027 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/0.1849, allocations: 14.58 kB / 339.2 MB, free: 6.016 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.1849, allocations: 17 kB / 339.2 MB, free: 6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008091/0.1857, allocations: 440 kB / 339.7 MB, free: 5.527 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.1857, allocations: 3.938 kB / 339.7 MB, free: 5.523 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.858e-05/0.1858, allocations: 8 kB / 339.7 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.1858, allocations: 4 kB / 339.7 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007361/0.1865, allocations: 351.5 kB / 340 MB, free: 5.168 MB / 298.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.001087/0.1876, allocations: 1.036 MB / 341.1 MB, free: 4.062 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005026/0.1881, allocations: 271.4 kB / 341.3 MB, free: 3.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.1883, allocations: 110.5 kB / 341.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04472/0.233, allocations: 25.15 MB / 366.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.233, allocations: 42.56 kB / 366.6 MB, free: 10.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.164e-06/0.233, allocations: 0 / 366.6 MB, free: 10.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.003738/0.2368, allocations: 1.497 MB / 368.1 MB, free: 8.891 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.2368, allocations: 114.8 kB / 368.2 MB, free: 8.754 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.374e-05/0.2369, allocations: 121.8 kB / 368.4 MB, free: 8.625 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.2369, allocations: 29.7 kB / 368.4 MB, free: 8.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.084e-05/0.237, allocations: 108.6 kB / 368.5 MB, free: 8.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.696e-05/0.237, allocations: 126.9 kB / 368.6 MB, free: 8.355 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.843e-05/0.2371, allocations: 61.75 kB / 368.7 MB, free: 8.289 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.803e-05/0.2372, allocations: 330.8 kB / 369 MB, free: 7.957 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.2374, allocations: 131.9 kB / 369.1 MB, free: 7.828 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.2377, allocations: 198.6 kB / 369.3 MB, free: 7.609 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004597/0.2381, allocations: 346.6 kB / 369.7 MB, free: 7.246 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.2381, allocations: 0 / 369.7 MB, free: 7.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006528/0.2388, allocations: 434 kB / 370.1 MB, free: 6.812 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.2388, allocations: 8 kB / 370.1 MB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.2388, allocations: 0 / 370.1 MB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001706/0.239, allocations: 36.84 kB / 370.1 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002479/0.2392, allocations: 91.86 kB / 370.2 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003034/0.2395, allocations: 0.5486 MB / 370.8 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.2397, allocations: 24.02 kB / 370.8 MB, free: 6.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.65e-05/0.2397, allocations: 19.98 kB / 370.8 MB, free: 6.059 MB / 330.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.0001223/0.2398, allocations: 133.8 kB / 370.9 MB, free: 5.918 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.732e-05/0.2399, allocations: 19.91 kB / 371 MB, free: 5.898 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/0.2414, allocations: 1.504 MB / 372.5 MB, free: 4.391 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/0.2414, allocations: 23.97 kB / 372.5 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.2414, allocations: 3.938 kB / 372.5 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.2414, allocations: 0 / 372.5 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.2432, allocations: 1.975 MB / 374.5 MB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.2432, allocations: 1 kB / 374.5 MB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.2434, allocations: 88.23 kB / 374.6 MB, free: 2.234 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001926/0.2436, allocations: 76.86 kB / 374.6 MB, free: 2.156 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.2437, allocations: 11.98 kB / 374.6 MB, free: 2.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002571/0.2439, allocations: 0.5875 MB / 375.2 MB, free: 1.531 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2439, allocations: 3.938 kB / 375.2 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.2453, allocations: 1.735 MB / 377 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.861e-05/0.2454, allocations: 55.56 kB / 377 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.296e-05/0.2454, allocations: 13.88 kB / 377 MB, free: 15.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.2456, allocations: 23.98 kB / 377.1 MB, free: 15.67 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.878e-05/0.2456, allocations: 43.8 kB / 377.1 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.2457, allocations: 15.98 kB / 377.1 MB, free: 15.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.513e-05/0.2457, allocations: 91.27 kB / 377.2 MB, free: 15.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2457, allocations: 0 / 377.2 MB, free: 15.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002074/0.2478, allocations: 0.963 MB / 378.2 MB, free: 14.56 MB / 346.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.005145/0.2529, allocations: 3.472 MB / 381.6 MB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009227/0.2539, allocations: 0.6006 MB / 382.2 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2539, allocations: 4 kB / 382.2 MB, free: 10.44 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004736/0.2543, allocations: 477.4 kB / 382.7 MB, free: 9.977 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005201/0.2549, allocations: 75.12 kB / 382.8 MB, free: 9.906 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005396/0.2602, allocations: 3.848 MB / 386.6 MB, free: 5.887 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001645/0.2604, allocations: 220.3 kB / 386.8 MB, free: 5.652 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002852/0.2607, allocations: 134 kB / 387 MB, free: 5.523 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/0.2609, allocations: 128.4 kB / 387.1 MB, free: 5.398 MB / 346.7 MB Notification: Performance of SimCode: time 1.212e-06/0.2609, allocations: 0 / 387.1 MB, free: 5.398 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05925/0.3201, allocations: 41.46 MB / 428.6 MB, free: 11.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.376/9.696, allocations: 15.88 kB / 428.6 MB, free: 11.8 MB / 394.7 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/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: 11.595386221073568]