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.001864/0.001864, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.002064/0.002064, allocations: 215.1 kB / 23.75 MB, free: 4.672 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.432/1.432, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.00189/0.00189, allocations: 63.89 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2396, allocations: 53.4 MB / 431.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01695/0.2565, allocations: 13.14 MB / 444.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01432/0.2709, allocations: 11.61 MB / 455.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.271, allocations: 4 kB / 455.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003612/0.2713, allocations: 71.55 kB / 456 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003416/0.2717, allocations: 95.41 kB / 456.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01452/0.2862, allocations: 5.092 MB / 461.2 MB, free: 8.621 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004307/0.2866, allocations: 234.9 kB / 461.4 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.093e-05/0.2867, allocations: 9.641 kB / 461.4 MB, free: 8.375 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004717/0.2872, allocations: 203.3 kB / 461.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.2873, allocations: 71.75 kB / 461.7 MB, free: 8.105 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.2873, allocations: 8 kB / 461.7 MB, free: 8.098 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01355/0.3009, allocations: 7.016 MB / 468.7 MB, free: 1.074 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.301, allocations: 31.91 kB / 468.7 MB, free: 1.043 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.3011, allocations: 67.72 kB / 468.8 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008856/0.31, allocations: 3.886 MB / 472.7 MB, free: 13.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.31, allocations: 3.984 kB / 472.7 MB, free: 13.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.31, allocations: 4 kB / 472.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.128e-06/0.31, allocations: 0 / 472.7 MB, free: 13.07 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.004852/0.3149, allocations: 1.088 MB / 473.8 MB, free: 11.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3149, allocations: 8.031 kB / 473.8 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.821e-05/0.315, allocations: 58.67 kB / 473.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004604/0.3154, allocations: 52.78 kB / 473.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.3157, allocations: 166.3 kB / 474.1 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.962e-05/0.3157, allocations: 16.59 kB / 474.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.443e-05/0.3158, allocations: 16.12 kB / 474.1 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.3171, allocations: 388.5 kB / 474.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.3171, allocations: 4 kB / 474.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.255e-05/0.3171, allocations: 8 kB / 474.5 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.3171, allocations: 4 kB / 474.5 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.3186, allocations: 355.5 kB / 474.8 MB, free: 10.84 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.001555/0.3201, allocations: 1.152 MB / 476 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00086/0.321, allocations: 275.8 kB / 476.2 MB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/0.3213, allocations: 114.3 kB / 476.4 MB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09078/0.412, allocations: 26.01 MB / 0.4906 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.4121, allocations: 34.56 kB / 0.4906 GB, free: 15.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.864e-06/0.4121, allocations: 0 / 0.4906 GB, free: 15.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006889/0.419, allocations: 1.5 MB / 0.4921 GB, free: 13.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.397e-05/0.419, allocations: 106.8 kB / 0.4922 GB, free: 13.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.4192, allocations: 129.7 kB / 0.4923 GB, free: 13.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.4192, allocations: 33.77 kB / 0.4924 GB, free: 13.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.818e-05/0.4193, allocations: 108.5 kB / 0.4925 GB, free: 13.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.4194, allocations: 123 kB / 0.4926 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.4195, allocations: 65.69 kB / 0.4926 GB, free: 12.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.4197, allocations: 334.8 kB / 0.493 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.4201, allocations: 131.7 kB / 0.4931 GB, free: 12.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004409/0.4205, allocations: 202.8 kB / 0.4933 GB, free: 12.26 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008244/0.4213, allocations: 346.6 kB / 0.4936 GB, free: 11.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.4213, allocations: 0 / 0.4936 GB, free: 11.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001102/0.4224, allocations: 430 kB / 0.494 GB, free: 11.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.4225, allocations: 8 kB / 0.494 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.4225, allocations: 0 / 0.494 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002522/0.4227, allocations: 33.22 kB / 0.4941 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004651/0.4232, allocations: 92.03 kB / 0.4941 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004595/0.4236, allocations: 0.5523 MB / 0.4947 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002808/0.4239, allocations: 19.98 kB / 0.4947 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.424, allocations: 23.92 kB / 0.4947 GB, free: 10.71 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.0001645/0.4241, allocations: 137.9 kB / 0.4949 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.783e-05/0.4242, allocations: 15.91 kB / 0.4949 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/0.4266, allocations: 1.5 MB / 0.4963 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/0.4266, allocations: 19.97 kB / 0.4964 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.4266, allocations: 12.02 kB / 0.4964 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.4266, allocations: 0 / 0.4964 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003147/0.4297, allocations: 1.998 MB / 0.4983 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4298, allocations: 0 / 0.4983 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004494/0.4302, allocations: 87.98 kB / 0.4984 GB, free: 6.863 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003107/0.4305, allocations: 64.8 kB / 0.4985 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/0.4306, allocations: 19.98 kB / 0.4985 GB, free: 6.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004134/0.431, allocations: 0.5951 MB / 0.4991 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.431, allocations: 8.125 kB / 0.4991 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002323/0.4333, allocations: 1.737 MB / 0.5008 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.43e-05/0.4334, allocations: 51.53 kB / 0.5008 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.643e-05/0.4334, allocations: 12 kB / 0.5008 GB, free: 4.316 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003646/0.4338, allocations: 23.92 kB / 0.5009 GB, free: 4.293 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.931e-05/0.4338, allocations: 31.94 kB / 0.5009 GB, free: 4.262 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-05/0.4339, allocations: 19.92 kB / 0.5009 GB, free: 4.242 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.238e-05/0.4339, allocations: 91.27 kB / 0.501 GB, free: 4.152 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4339, allocations: 0 / 0.501 GB, free: 4.152 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002656/0.4366, allocations: 0.9708 MB / 0.5019 GB, free: 3.18 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.007171/0.4438, allocations: 3.339 MB / 0.5052 GB, free: 15.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.4453, allocations: 0.6008 MB / 0.5058 GB, free: 15.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4453, allocations: 4.125 kB / 0.5058 GB, free: 15.19 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000804/0.4461, allocations: 472.9 kB / 0.5062 GB, free: 14.73 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007729/0.4469, allocations: 80.23 kB / 0.5063 GB, free: 14.65 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007421/0.4543, allocations: 3.95 MB / 0.5102 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.4547, allocations: 0.8138 MB / 0.511 GB, free: 9.699 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003659/0.4551, allocations: 141.7 kB / 0.5111 GB, free: 9.562 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000237/0.4553, allocations: 131.4 kB / 0.5112 GB, free: 9.434 MB / 430.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4553, allocations: 0 / 0.5112 GB, free: 9.434 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2729/0.7283, allocations: 41.38 MB / 0.5516 GB, free: 83.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.39/16.12, allocations: 18.27 kB / 0.5517 GB, free: 83.58 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.98815308900157]