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.001355/0.001355, allocations: 114.1 kB / 17.07 MB, free: 5.984 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.001388/0.001388, allocations: 193.4 kB / 18 MB, free: 5.066 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.4/1.4, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001536, allocations: 39.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2469, allocations: 49.44 MB / 400.2 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01651/0.2634, allocations: 12.91 MB / 413.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01385/0.2773, allocations: 11.55 MB / 424.7 MB, free: 440 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.2775, allocations: 4 kB / 424.7 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003303/0.2778, allocations: 71.56 kB / 424.7 MB, free: 364 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002821/0.2782, allocations: 79.42 kB / 424.8 MB, free: 284 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01263/0.2908, allocations: 5.085 MB / 429.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003724/0.2912, allocations: 230.9 kB / 430.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.097e-05/0.2913, allocations: 9.453 kB / 430.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004452/0.2917, allocations: 195.3 kB / 430.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.2919, allocations: 71.75 kB / 430.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.387e-05/0.2919, allocations: 8 kB / 430.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01283/0.3047, allocations: 6.993 MB / 437.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.142e-05/0.3048, allocations: 23.92 kB / 437.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.305, allocations: 75.66 kB / 437.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008239/0.3132, allocations: 3.878 MB / 441.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.3133, allocations: 0 / 441.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3133, allocations: 4 kB / 441.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.3133, allocations: 0 / 441.4 MB, free: 15.7 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.004844/0.3181, allocations: 1.159 MB / 442.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.3182, allocations: 8.031 kB / 442.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.46e-05/0.3183, allocations: 46.73 kB / 442.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004937/0.3188, allocations: 56.8 kB / 442.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.3192, allocations: 216.2 kB / 442.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.445e-05/0.3192, allocations: 16.66 kB / 442.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.964e-05/0.3193, allocations: 20.08 kB / 442.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.3206, allocations: 380.9 kB / 443.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.3206, allocations: 7.984 kB / 443.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.3206, allocations: 4 kB / 443.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.3207, allocations: 4 kB / 443.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.3221, allocations: 359.5 kB / 443.6 MB, free: 13.32 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.001522/0.3236, allocations: 1.188 MB / 444.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008619/0.3245, allocations: 283.7 kB / 445.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002998/0.3248, allocations: 112.2 kB / 445.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1022/0.427, allocations: 47.65 MB / 492.9 MB, free: 6.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.585e-05/0.4271, allocations: 38.55 kB / 492.9 MB, free: 6.293 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.044e-06/0.4271, allocations: 4 kB / 492.9 MB, free: 6.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.007014/0.4341, allocations: 1.582 MB / 494.5 MB, free: 4.652 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.877e-05/0.4342, allocations: 106.8 kB / 494.6 MB, free: 4.523 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.4344, allocations: 125.8 kB / 494.7 MB, free: 4.391 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.695e-05/0.4344, allocations: 33.7 kB / 494.7 MB, free: 4.352 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.009e-05/0.4345, allocations: 104.6 kB / 494.8 MB, free: 4.246 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.4346, allocations: 126.9 kB / 495 MB, free: 4.121 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.4348, allocations: 69.47 kB / 495 MB, free: 4.047 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.4349, allocations: 334.8 kB / 495.4 MB, free: 3.711 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004015/0.4353, allocations: 131.9 kB / 495.5 MB, free: 3.582 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004546/0.4358, allocations: 198.5 kB / 495.7 MB, free: 3.363 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008699/0.4367, allocations: 354.6 kB / 496 MB, free: 2.992 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.4367, allocations: 4 kB / 496 MB, free: 2.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001113/0.4378, allocations: 422 kB / 496.4 MB, free: 2.566 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.4378, allocations: 11.98 kB / 496.5 MB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.4378, allocations: 0 / 496.5 MB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002325/0.4381, allocations: 32.84 kB / 496.5 MB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004613/0.4385, allocations: 92.03 kB / 496.6 MB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004056/0.439, allocations: 0.5561 MB / 497.1 MB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.4392, allocations: 20.02 kB / 497.2 MB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.032e-05/0.4393, allocations: 19.98 kB / 497.2 MB, free: 1.809 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.000147/0.4394, allocations: 133.9 kB / 497.3 MB, free: 1.668 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.329e-05/0.4395, allocations: 15.91 kB / 497.3 MB, free: 1.652 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002222/0.4418, allocations: 1.446 MB / 498.8 MB, free: 196 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.518e-05/0.4418, allocations: 28 kB / 498.8 MB, free: 168 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4418, allocations: 0 / 498.8 MB, free: 168 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.4418, allocations: 7.984 kB / 498.8 MB, free: 160 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003146/0.445, allocations: 1.979 MB / 0.489 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.445, allocations: 4 kB / 0.489 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/0.4454, allocations: 83.98 kB / 0.4891 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002984/0.4457, allocations: 68.75 kB / 0.4892 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.828e-05/0.4458, allocations: 19.98 kB / 0.4892 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004454/0.4462, allocations: 0.5878 MB / 0.4898 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.46e-05/0.4463, allocations: 11.95 kB / 0.4898 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.4487, allocations: 1.687 MB / 0.4914 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.05e-05/0.4488, allocations: 136.6 kB / 0.4916 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.423e-05/0.4488, allocations: 11.94 kB / 0.4916 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000353/0.4492, allocations: 27.95 kB / 0.4916 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.391e-05/0.4493, allocations: 27.97 kB / 0.4916 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.4493, allocations: 15.98 kB / 0.4917 GB, free: 11.35 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.669e-05/0.4494, allocations: 91.27 kB / 0.4917 GB, free: 11.26 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4494, allocations: 4 kB / 0.4917 GB, free: 11.26 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002516/0.4519, allocations: 0.9669 MB / 0.4927 GB, free: 10.29 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.006878/0.4588, allocations: 3.283 MB / 0.4959 GB, free: 6.957 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.4603, allocations: 0.6121 MB / 0.4965 GB, free: 6.344 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.4603, allocations: 0 / 0.4965 GB, free: 6.344 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009115/0.4612, allocations: 0.5007 MB / 0.497 GB, free: 5.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007668/0.462, allocations: 88.62 kB / 0.4971 GB, free: 5.754 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007117/0.4691, allocations: 3.913 MB / 0.5009 GB, free: 1.691 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004978/0.4696, allocations: 0.8139 MB / 0.5017 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003405/0.47, allocations: 145.5 kB / 0.5018 GB, free: 0.707 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.4702, allocations: 131.4 kB / 0.5019 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of SimCode: time 4.4e-07/0.4702, allocations: 0 / 0.5019 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2377/0.7079, allocations: 40.53 MB / 0.5415 GB, free: 139.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/14.24, allocations: 14.91 kB / 0.5415 GB, free: 139.5 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