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.001139/0.001139, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001111/0.001112, allocations: 195 kB / 18 MB, free: 5.105 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.267/1.267, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009462/0.0009462, allocations: 51.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2327, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01425/0.247, allocations: 12.89 MB / 413.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.2592, allocations: 11.55 MB / 424.7 MB, free: 260 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.2594, allocations: 4 kB / 424.7 MB, free: 256 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002912/0.2597, allocations: 75.55 kB / 424.7 MB, free: 180 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002656/0.26, allocations: 83.44 kB / 424.8 MB, free: 96 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0115/0.2715, allocations: 5.075 MB / 429.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003283/0.2719, allocations: 230.9 kB / 430.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.708e-05/0.2719, allocations: 17.44 kB / 430.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004043/0.2723, allocations: 199.3 kB / 430.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.2725, allocations: 67.75 kB / 430.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.832e-05/0.2725, allocations: 8 kB / 430.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0113/0.2838, allocations: 6.985 MB / 437.4 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.065e-05/0.2839, allocations: 27.89 kB / 437.4 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.284, allocations: 71.67 kB / 437.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007234/0.2912, allocations: 3.864 MB / 441.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.2913, allocations: 0 / 441.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2913, allocations: 0 / 441.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.2913, allocations: 0 / 441.3 MB, free: 15.55 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.004349/0.2957, allocations: 1.151 MB / 442.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.2957, allocations: 12.03 kB / 442.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.2e-05/0.2958, allocations: 46.73 kB / 442.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004495/0.2962, allocations: 52.7 kB / 442.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.2965, allocations: 216.2 kB / 442.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.018e-05/0.2965, allocations: 16.66 kB / 442.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.433e-05/0.2966, allocations: 20.03 kB / 442.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.2978, allocations: 388.9 kB / 443.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.2978, allocations: 0 / 443.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.2979, allocations: 4 kB / 443.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.2979, allocations: 4 kB / 443.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.2993, allocations: 359.5 kB / 443.6 MB, free: 13.18 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.001339/0.3006, allocations: 1.184 MB / 444.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008216/0.3015, allocations: 275.7 kB / 445 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002749/0.3018, allocations: 114.9 kB / 445.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09386/0.3956, allocations: 47.64 MB / 492.8 MB, free: 6.215 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.921e-05/0.3957, allocations: 42.56 kB / 492.8 MB, free: 6.164 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.565e-06/0.3957, allocations: 3.938 kB / 492.8 MB, free: 6.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006902/0.4026, allocations: 1.583 MB / 494.4 MB, free: 4.523 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.4027, allocations: 110.9 kB / 494.5 MB, free: 4.391 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.778e-05/0.4028, allocations: 117.8 kB / 494.7 MB, free: 4.266 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.4029, allocations: 33.7 kB / 494.7 MB, free: 4.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.393e-05/0.4029, allocations: 104.5 kB / 494.8 MB, free: 4.121 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.663e-05/0.403, allocations: 118.3 kB / 494.9 MB, free: 4.004 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.4031, allocations: 73.47 kB / 495 MB, free: 3.926 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.4033, allocations: 326.8 kB / 495.3 MB, free: 3.598 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003831/0.4037, allocations: 139.9 kB / 495.4 MB, free: 3.461 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004241/0.4041, allocations: 202.5 kB / 495.6 MB, free: 3.238 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008197/0.4049, allocations: 347 kB / 496 MB, free: 2.875 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4049, allocations: 0 / 496 MB, free: 2.875 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001097/0.406, allocations: 429.9 kB / 496.4 MB, free: 2.445 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.4061, allocations: 4 kB / 496.4 MB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.4061, allocations: 7.938 kB / 496.4 MB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00023/0.4063, allocations: 37.05 kB / 496.4 MB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004449/0.4068, allocations: 95.81 kB / 496.5 MB, free: 2.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003813/0.4072, allocations: 0.5445 MB / 497.1 MB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000275/0.4075, allocations: 28.06 kB / 497.1 MB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.4075, allocations: 15.98 kB / 497.1 MB, free: 1.688 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.0001425/0.4077, allocations: 137.7 kB / 497.2 MB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.4078, allocations: 15.89 kB / 497.3 MB, free: 1.527 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/0.4099, allocations: 1.454 MB / 498.7 MB, free: 60 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.4099, allocations: 19.91 kB / 498.7 MB, free: 40 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4099, allocations: 4 kB / 498.7 MB, free: 36 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.4099, allocations: 3.984 kB / 498.7 MB, free: 32 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002923/0.4129, allocations: 1.975 MB / 0.489 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.4129, allocations: 8.125 kB / 0.489 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004403/0.4133, allocations: 83.86 kB / 0.4891 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003079/0.4136, allocations: 64.8 kB / 0.4891 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.4137, allocations: 15.98 kB / 0.4891 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003645/0.4141, allocations: 0.5951 MB / 0.4897 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.4141, allocations: 4.031 kB / 0.4897 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002157/0.4162, allocations: 1.686 MB / 0.4914 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.611e-05/0.4163, allocations: 132.4 kB / 0.4915 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/0.4164, allocations: 8 kB / 0.4915 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/0.4168, allocations: 23.92 kB / 0.4915 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.858e-05/0.4168, allocations: 27.95 kB / 0.4916 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-05/0.4169, allocations: 23.98 kB / 0.4916 GB, free: 11.24 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.281e-05/0.4169, allocations: 87.28 kB / 0.4917 GB, free: 11.15 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4169, allocations: 0 / 0.4917 GB, free: 11.15 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002502/0.4194, allocations: 0.9566 MB / 0.4926 GB, free: 10.2 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.006722/0.4262, allocations: 3.276 MB / 0.4958 GB, free: 6.871 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.4276, allocations: 0.6082 MB / 0.4964 GB, free: 6.262 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.4276, allocations: 7.938 kB / 0.4964 GB, free: 6.254 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007909/0.4284, allocations: 0.5089 MB / 0.4969 GB, free: 5.742 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007503/0.4292, allocations: 71.92 kB / 0.497 GB, free: 5.672 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006916/0.4361, allocations: 3.893 MB / 0.5008 GB, free: 1.633 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.4365, allocations: 0.8178 MB / 0.5016 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003643/0.4369, allocations: 141.2 kB / 0.5017 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002292/0.4371, allocations: 131.4 kB / 0.5018 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4371, allocations: 7.938 kB / 0.5018 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2369/0.6741, allocations: 40.71 MB / 0.5416 GB, free: 139.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/14.01, allocations: 9.719 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