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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 103.1 kB / 17.06 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 195 kB / 18 MB, free: 5.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000981/0.0009811, allocations: 55.91 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2186, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01488/0.2335, allocations: 12.9 MB / 413.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.2462, allocations: 11.54 MB / 424.7 MB, free: 276 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.2464, allocations: 0 / 424.7 MB, free: 276 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002911/0.2468, allocations: 75.61 kB / 424.7 MB, free: 200 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.247, allocations: 79.38 kB / 424.8 MB, free: 120 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01159/0.2586, allocations: 5.074 MB / 429.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003094/0.2589, allocations: 234.8 kB / 430.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.966e-05/0.259, allocations: 17.42 kB / 430.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003955/0.2594, allocations: 199.3 kB / 430.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.2595, allocations: 71.75 kB / 430.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.2595, allocations: 8 kB / 430.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01119/0.2707, allocations: 6.981 MB / 437.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.683e-05/0.2709, allocations: 31.89 kB / 437.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.271, allocations: 71.67 kB / 437.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006838/0.2778, allocations: 3.86 MB / 441.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.2779, allocations: 4 kB / 441.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.2779, allocations: 0 / 441.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.2779, allocations: 3.938 kB / 441.4 MB, free: 15.56 MB / 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.004565/0.2824, allocations: 1.143 MB / 442.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.2825, allocations: 16.03 kB / 442.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.821e-05/0.2826, allocations: 46.73 kB / 442.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004536/0.283, allocations: 56.7 kB / 442.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.2833, allocations: 216.2 kB / 442.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.2833, allocations: 12.66 kB / 442.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.994e-05/0.2834, allocations: 24.03 kB / 442.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.2846, allocations: 384.9 kB / 443.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.2846, allocations: 0 / 443.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.531e-05/0.2846, allocations: 8 kB / 443.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.2847, allocations: 4 kB / 443.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.286, allocations: 351.5 kB / 443.6 MB, free: 13.2 MB / 366.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.001309/0.2873, allocations: 1.195 MB / 444.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007855/0.2881, allocations: 275.8 kB / 445.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/0.2884, allocations: 110.9 kB / 445.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08986/0.3782, allocations: 47.65 MB / 492.8 MB, free: 6.219 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/0.3783, allocations: 30.56 kB / 492.8 MB, free: 6.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.034e-06/0.3783, allocations: 0 / 492.8 MB, free: 6.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.007071/0.3854, allocations: 1.587 MB / 494.4 MB, free: 4.539 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.3855, allocations: 110.8 kB / 494.5 MB, free: 4.406 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.3856, allocations: 121.7 kB / 494.7 MB, free: 4.277 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.3856, allocations: 33.7 kB / 494.7 MB, free: 4.238 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.032e-05/0.3857, allocations: 104.5 kB / 494.8 MB, free: 4.133 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.978e-05/0.3858, allocations: 118.3 kB / 494.9 MB, free: 4.016 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.3859, allocations: 77.47 kB / 495 MB, free: 3.934 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.386, allocations: 330.8 kB / 495.3 MB, free: 3.602 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003781/0.3864, allocations: 131.9 kB / 495.4 MB, free: 3.473 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004348/0.3869, allocations: 202.5 kB / 495.6 MB, free: 3.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007899/0.3877, allocations: 346.6 kB / 496 MB, free: 2.887 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.3877, allocations: 4 kB / 496 MB, free: 2.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001058/0.3888, allocations: 426 kB / 496.4 MB, free: 2.457 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3888, allocations: 4 kB / 496.4 MB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3888, allocations: 4 kB / 496.4 MB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002307/0.389, allocations: 36.83 kB / 496.4 MB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004668/0.3895, allocations: 87.88 kB / 496.5 MB, free: 2.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003737/0.3899, allocations: 0.5563 MB / 497.1 MB, free: 1.742 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002903/0.3902, allocations: 19.97 kB / 497.1 MB, free: 1.723 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.356e-05/0.3902, allocations: 16 kB / 497.1 MB, free: 1.707 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.0001721/0.3904, allocations: 137.7 kB / 497.2 MB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.3905, allocations: 19.89 kB / 497.3 MB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002016/0.3925, allocations: 1.446 MB / 498.7 MB, free: 84 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.31e-05/0.3926, allocations: 23.97 kB / 498.7 MB, free: 60 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3926, allocations: 0 / 498.7 MB, free: 60 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.3926, allocations: 3.984 kB / 498.7 MB, free: 56 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00284/0.3955, allocations: 1.987 MB / 0.489 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.3955, allocations: 0 / 0.489 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000443/0.3959, allocations: 79.86 kB / 0.4891 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003088/0.3962, allocations: 76.86 kB / 0.4891 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.398e-05/0.3963, allocations: 15.98 kB / 0.4892 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003388/0.3966, allocations: 0.5874 MB / 0.4897 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3967, allocations: 0 / 0.4897 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0021/0.3988, allocations: 1.69 MB / 0.4914 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.258e-05/0.3989, allocations: 128.4 kB / 0.4915 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5e-05/0.3989, allocations: 8 kB / 0.4915 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003785/0.3993, allocations: 31.92 kB / 0.4915 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.617e-05/0.3994, allocations: 35.98 kB / 0.4916 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.3994, allocations: 16.34 kB / 0.4916 GB, free: 11.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.133e-05/0.3995, allocations: 91.22 kB / 0.4917 GB, free: 11.16 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3995, allocations: 0 / 0.4917 GB, free: 11.16 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002446/0.4019, allocations: 0.9566 MB / 0.4926 GB, free: 10.21 MB / 430.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.006726/0.4087, allocations: 3.268 MB / 0.4958 GB, free: 6.891 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001349/0.41, allocations: 0.6119 MB / 0.4964 GB, free: 6.277 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.41, allocations: 0 / 0.4964 GB, free: 6.277 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007937/0.4108, allocations: 0.517 MB / 0.4969 GB, free: 5.758 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007654/0.4116, allocations: 76.2 kB / 0.497 GB, free: 5.684 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006864/0.4185, allocations: 3.904 MB / 0.5008 GB, free: 1.637 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/0.4189, allocations: 0.8178 MB / 0.5016 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003537/0.4193, allocations: 129.8 kB / 0.5017 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002082/0.4195, allocations: 127.4 kB / 0.5018 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4195, allocations: 4 kB / 0.5018 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2397/0.6592, allocations: 40.7 MB / 0.5416 GB, free: 139.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.88, allocations: 12.78 kB / 0.5416 GB, free: 139.1 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches