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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001511/0.001511, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 61.75 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09835, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01484/0.1132, allocations: 13.02 MB / 370.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1552/0.2685, allocations: 11.54 MB / 382.1 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.494e-05/0.2686, allocations: 5.281 kB / 382.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.2689, allocations: 70.75 kB / 382.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002404/0.2692, allocations: 83.7 kB / 382.3 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01228/0.2815, allocations: 5.078 MB / 387.4 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002874/0.2818, allocations: 230.1 kB / 387.6 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.976e-05/0.2819, allocations: 16.97 kB / 387.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003557/0.2822, allocations: 189.6 kB / 387.8 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.2824, allocations: 76.81 kB / 387.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.2824, allocations: 12.41 kB / 387.9 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01286/0.2952, allocations: 6.834 MB / 394.7 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.439e-05/0.2954, allocations: 25.95 kB / 394.7 MB, free: 2.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.2955, allocations: 67.94 kB / 394.8 MB, free: 2.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008345/0.3038, allocations: 3.886 MB / 398.7 MB, free: 108 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.3039, allocations: 1.375 kB / 398.7 MB, free: 108 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3039, allocations: 0 / 398.7 MB, free: 108 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.3039, allocations: 3.984 kB / 398.7 MB, free: 104 kB / 302.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.005636/0.3095, allocations: 1.144 MB / 399.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.3096, allocations: 11.62 kB / 399.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.013e-05/0.3097, allocations: 48.61 kB / 399.9 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005063/0.3102, allocations: 51.42 kB / 399.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.3105, allocations: 219 kB / 400.2 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.3105, allocations: 14.22 kB / 400.2 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.744e-05/0.3106, allocations: 15.34 kB / 400.2 MB, free: 14.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.3118, allocations: 386.2 kB / 400.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.3119, allocations: 0 / 400.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.897e-05/0.3119, allocations: 6.656 kB / 400.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.3119, allocations: 6.906 kB / 400.6 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.3134, allocations: 359.1 kB / 400.9 MB, free: 14.52 MB / 318.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.001365/0.3147, allocations: 1.198 MB / 402.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008347/0.3156, allocations: 272.5 kB / 402.4 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002757/0.3159, allocations: 111.2 kB / 402.5 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1028/0.4187, allocations: 52.6 MB / 455.1 MB, free: 2.902 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/0.4187, allocations: 42.5 kB / 455.1 MB, free: 2.852 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.954e-06/0.4187, allocations: 0 / 455.1 MB, free: 2.852 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.007073/0.4258, allocations: 1.576 MB / 456.7 MB, free: 1.223 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.4259, allocations: 110.8 kB / 456.8 MB, free: 1.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.4261, allocations: 117.8 kB / 456.9 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.98e-05/0.4261, allocations: 30.08 kB / 457 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.139e-05/0.4262, allocations: 108.4 kB / 457.1 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.4263, allocations: 122.3 kB / 457.2 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.4265, allocations: 65.67 kB / 457.3 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.4266, allocations: 330.8 kB / 457.6 MB, free: 304 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003893/0.427, allocations: 127.9 kB / 457.7 MB, free: 176 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004534/0.4274, allocations: 208.4 kB / 457.9 MB, free: 15.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008176/0.4283, allocations: 350.5 kB / 458.3 MB, free: 15.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4283, allocations: 7.938 kB / 458.3 MB, free: 15.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001103/0.4294, allocations: 422 kB / 458.7 MB, free: 15.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.4294, allocations: 8 kB / 458.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.4294, allocations: 0 / 458.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002613/0.4297, allocations: 40.78 kB / 458.7 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004814/0.4302, allocations: 87.88 kB / 458.8 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004294/0.4306, allocations: 0.5524 MB / 459.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003169/0.431, allocations: 20.02 kB / 459.4 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.431, allocations: 19.98 kB / 459.4 MB, free: 14.39 MB / 382.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.000173/0.4312, allocations: 141.7 kB / 459.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.4313, allocations: 19.91 kB / 459.6 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002154/0.4335, allocations: 1.441 MB / 461 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.456e-05/0.4335, allocations: 23.95 kB / 461 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4335, allocations: 0 / 461 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.4336, allocations: 4 kB / 461 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002891/0.4365, allocations: 1.979 MB / 463 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.4365, allocations: 4 kB / 463 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004459/0.4369, allocations: 83.86 kB / 463.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003085/0.4373, allocations: 68.7 kB / 463.2 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/0.4373, allocations: 20.02 kB / 463.2 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003805/0.4377, allocations: 0.5844 MB / 463.8 MB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.4377, allocations: 4.031 kB / 463.8 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002206/0.4399, allocations: 1.689 MB / 465.5 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.731e-05/0.44, allocations: 124.5 kB / 465.6 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.588e-05/0.4401, allocations: 12 kB / 465.6 MB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/0.4405, allocations: 23.95 kB / 465.6 MB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.099e-05/0.4406, allocations: 31.97 kB / 465.6 MB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-05/0.4406, allocations: 21.11 kB / 465.7 MB, free: 7.961 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.455e-05/0.4407, allocations: 95.2 kB / 465.8 MB, free: 7.867 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4407, allocations: 0 / 465.8 MB, free: 7.867 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003271/0.444, allocations: 0.9605 MB / 466.7 MB, free: 6.906 MB / 382.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.008103/0.4521, allocations: 3.273 MB / 470 MB, free: 3.586 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.4538, allocations: 0.6238 MB / 470.6 MB, free: 2.957 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4538, allocations: 0 / 470.6 MB, free: 2.957 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008371/0.4546, allocations: 0.5129 MB / 471.1 MB, free: 2.445 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008337/0.4555, allocations: 70.88 kB / 471.2 MB, free: 2.379 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007789/0.4633, allocations: 3.895 MB / 475.1 MB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.4637, allocations: 0.8217 MB / 475.9 MB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004134/0.4641, allocations: 129.8 kB / 476 MB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.4644, allocations: 131.4 kB / 476.2 MB, free: 13.23 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4644, allocations: 0 / 476.2 MB, free: 13.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.114/2.578, allocations: 40.62 MB / 0.5047 GB, free: 4.645 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.3/19.87, allocations: 17.5 kB / 0.5047 GB, free: 4.629 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches