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.00133/0.00133, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 63.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2537, allocations: 50.55 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01646/0.2702, allocations: 13 MB / 421.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01274/0.283, allocations: 11.54 MB / 433.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.2831, allocations: 0 / 433.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002971/0.2834, allocations: 67.56 kB / 433.3 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002704/0.2837, allocations: 91.42 kB / 433.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01158/0.2953, allocations: 5.074 MB / 438.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003146/0.2957, allocations: 234.9 kB / 438.7 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.662e-05/0.2957, allocations: 17.44 kB / 438.8 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003791/0.2961, allocations: 191.3 kB / 438.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.2962, allocations: 79.67 kB / 439 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.824e-05/0.2963, allocations: 8 kB / 439 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01151/0.3078, allocations: 6.997 MB / 446 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.718e-05/0.3079, allocations: 23.91 kB / 446 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.308, allocations: 67.73 kB / 446.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007592/0.3156, allocations: 3.876 MB / 450 MB, free: 8.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3156, allocations: 0 / 450 MB, free: 8.184 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3157, allocations: 0 / 450 MB, free: 8.184 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.3157, allocations: 4 kB / 450 MB, free: 8.18 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.004719/0.3204, allocations: 1.139 MB / 451.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3205, allocations: 12.03 kB / 451.1 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.392e-05/0.3205, allocations: 54.73 kB / 451.2 MB, free: 6.918 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004755/0.321, allocations: 52.7 kB / 451.3 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.3213, allocations: 216.2 kB / 451.5 MB, free: 6.617 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.3213, allocations: 8.656 kB / 451.5 MB, free: 6.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.083e-05/0.3214, allocations: 24.03 kB / 451.5 MB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.3227, allocations: 384.9 kB / 451.9 MB, free: 6.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.3227, allocations: 4 kB / 451.9 MB, free: 6.176 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.679e-05/0.3227, allocations: 8 kB / 451.9 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3227, allocations: 7.938 kB / 451.9 MB, free: 6.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.3241, allocations: 355.5 kB / 452.2 MB, free: 5.812 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.001376/0.3255, allocations: 1.184 MB / 453.4 MB, free: 4.527 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008461/0.3264, allocations: 283.2 kB / 453.7 MB, free: 4.227 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/0.3267, allocations: 114.8 kB / 453.8 MB, free: 4.105 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09535/0.422, allocations: 52.8 MB / 0.4947 GB, free: 8.652 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.4221, allocations: 34.56 kB / 0.4948 GB, free: 8.609 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 1.944e-06/0.4221, allocations: 4 kB / 0.4948 GB, free: 8.605 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.006626/0.4287, allocations: 1.583 MB / 0.4963 GB, free: 6.965 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.605e-05/0.4288, allocations: 106.8 kB / 0.4964 GB, free: 6.836 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.917e-05/0.4289, allocations: 125.7 kB / 0.4965 GB, free: 6.703 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.107e-05/0.429, allocations: 37.77 kB / 0.4966 GB, free: 6.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.864e-05/0.4291, allocations: 100.5 kB / 0.4967 GB, free: 6.559 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.4292, allocations: 114.4 kB / 0.4968 GB, free: 6.445 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.4293, allocations: 73.59 kB / 0.4969 GB, free: 6.367 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.4294, allocations: 330.8 kB / 0.4972 GB, free: 6.035 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003727/0.4298, allocations: 139.7 kB / 0.4973 GB, free: 5.898 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003967/0.4302, allocations: 194.8 kB / 0.4975 GB, free: 5.684 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007372/0.431, allocations: 350.5 kB / 0.4978 GB, free: 5.316 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.431, allocations: 3.938 kB / 0.4978 GB, free: 5.312 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001039/0.432, allocations: 422 kB / 0.4982 GB, free: 4.891 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.432, allocations: 4 kB / 0.4982 GB, free: 4.887 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.4321, allocations: 4 kB / 0.4982 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002433/0.4323, allocations: 36.83 kB / 0.4983 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004666/0.4328, allocations: 92.03 kB / 0.4984 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003704/0.4332, allocations: 0.5522 MB / 0.4989 GB, free: 4.176 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002749/0.4334, allocations: 19.98 kB / 0.4989 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.4335, allocations: 15.98 kB / 0.4989 GB, free: 4.141 MB / 430.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.0001503/0.4336, allocations: 157.3 kB / 0.4991 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.453e-05/0.4337, allocations: 11.91 kB / 0.4991 GB, free: 3.969 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001976/0.4357, allocations: 1.435 MB / 0.5005 GB, free: 2.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.309e-05/0.4358, allocations: 24 kB / 0.5005 GB, free: 2.496 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4358, allocations: 0 / 0.5005 GB, free: 2.496 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.4358, allocations: 3.984 kB / 0.5005 GB, free: 2.492 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002797/0.4386, allocations: 1.971 MB / 0.5024 GB, free: 460 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.4386, allocations: 4 kB / 0.5025 GB, free: 456 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004378/0.4391, allocations: 87.98 kB / 0.5025 GB, free: 368 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000313/0.4394, allocations: 72.7 kB / 0.5026 GB, free: 292 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.543e-05/0.4394, allocations: 11.98 kB / 0.5026 GB, free: 280 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003748/0.4398, allocations: 0.5914 MB / 0.5032 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4398, allocations: 3.938 kB / 0.5032 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/0.442, allocations: 1.69 MB / 0.5048 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.285e-05/0.4421, allocations: 128.4 kB / 0.505 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.838e-05/0.4422, allocations: 8 kB / 0.505 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003806/0.4425, allocations: 23.97 kB / 0.505 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.789e-05/0.4426, allocations: 39.83 kB / 0.505 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/0.4427, allocations: 15.98 kB / 0.5051 GB, free: 13.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.946e-05/0.4427, allocations: 91.27 kB / 0.5051 GB, free: 13.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4427, allocations: 4 kB / 0.5051 GB, free: 13.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002528/0.4453, allocations: 0.9644 MB / 0.5061 GB, free: 12.64 MB / 446.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.006681/0.452, allocations: 3.273 MB / 0.5093 GB, free: 9.324 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.4534, allocations: 0.6121 MB / 0.5099 GB, free: 8.711 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.4535, allocations: 0 / 0.5099 GB, free: 8.711 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007778/0.4542, allocations: 0.5085 MB / 0.5104 GB, free: 8.199 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008181/0.4551, allocations: 84.52 kB / 0.5105 GB, free: 8.117 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006893/0.462, allocations: 3.888 MB / 0.5143 GB, free: 4.074 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.4624, allocations: 0.8178 MB / 0.5151 GB, free: 3.227 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003768/0.4628, allocations: 137.4 kB / 0.5152 GB, free: 3.094 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002294/0.4631, allocations: 127.4 kB / 0.5153 GB, free: 2.969 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4631, allocations: 0 / 0.5153 GB, free: 2.969 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2442/0.7073, allocations: 40.79 MB / 0.5551 GB, free: 112.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/14.06, allocations: 7.562 kB / 0.5551 GB, free: 112.2 MB / 462.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