Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_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.001203/0.001203, allocations: 110.4 kB / 17.73 MB, free: 5.328 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.001165/0.001165, allocations: 183.1 kB / 18.66 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 55.92 kB / 328 MB, free: 3.84 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08174/0.08342, allocations: 46.62 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.1681/0.2516, allocations: 12.91 MB / 387.5 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01068/0.2623, allocations: 11.53 MB / 399.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.2625, allocations: 0 / 399.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003192/0.2629, allocations: 71.95 kB / 399.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.2632, allocations: 88.05 kB / 399.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0152/0.2784, allocations: 5.064 MB / 404.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003855/0.2788, allocations: 235.4 kB / 404.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.388e-05/0.2788, allocations: 13.64 kB / 404.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004179/0.2793, allocations: 192.8 kB / 404.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.2794, allocations: 75.78 kB / 404.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.2794, allocations: 7.969 kB / 404.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01442/0.2939, allocations: 6.988 MB / 411.8 MB, free: 8.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.36e-05/0.294, allocations: 33.89 kB / 411.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.2941, allocations: 68.86 kB / 411.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009537/0.3037, allocations: 3.873 MB / 415.8 MB, free: 5.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3037, allocations: 0 / 415.8 MB, free: 5.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3037, allocations: 1.75 kB / 415.8 MB, free: 5.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.3037, allocations: 0 / 415.8 MB, free: 5.582 MB / 334.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.005184/0.3089, allocations: 1.167 MB / 416.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.309, allocations: 10.53 kB / 417 MB, free: 4.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.389e-05/0.3091, allocations: 46.61 kB / 417 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004782/0.3096, allocations: 58.27 kB / 417.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000336/0.3099, allocations: 224.6 kB / 417.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.3099, allocations: 11.03 kB / 417.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.149e-05/0.31, allocations: 14.97 kB / 417.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.3113, allocations: 388.9 kB / 417.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.3113, allocations: 1.469 kB / 417.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.345e-05/0.3113, allocations: 5.375 kB / 417.7 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.3114, allocations: 8.188 kB / 417.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.3128, allocations: 354.6 kB / 418 MB, free: 3.965 MB / 334.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.001508/0.3143, allocations: 1.183 MB / 419.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008401/0.3152, allocations: 282.9 kB / 419.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.3155, allocations: 115.1 kB / 419.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1041/0.4195, allocations: 47.65 MB / 467.3 MB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.367e-05/0.4196, allocations: 49.3 kB / 467.3 MB, free: 13.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.803e-06/0.4197, allocations: 0 / 467.3 MB, free: 13.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.006899/0.4266, allocations: 1.569 MB / 468.9 MB, free: 11.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.076e-05/0.4267, allocations: 114.8 kB / 469 MB, free: 11.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.4268, allocations: 117.8 kB / 469.1 MB, free: 11.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.4268, allocations: 33.64 kB / 469.1 MB, free: 11.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.792e-05/0.4269, allocations: 108.6 kB / 469.2 MB, free: 11.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.427, allocations: 126.9 kB / 469.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.4271, allocations: 65.69 kB / 469.4 MB, free: 11.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.4273, allocations: 326.8 kB / 469.8 MB, free: 10.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003971/0.4277, allocations: 135.9 kB / 469.9 MB, free: 10.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004485/0.4281, allocations: 206.5 kB / 470.1 MB, free: 10.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008573/0.429, allocations: 346.5 kB / 470.4 MB, free: 10.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.429, allocations: 0 / 470.4 MB, free: 10.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001087/0.4301, allocations: 428.9 kB / 470.8 MB, free: 9.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.4301, allocations: 8 kB / 470.9 MB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.4301, allocations: 224 / 470.9 MB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002291/0.4304, allocations: 40.83 kB / 470.9 MB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.4308, allocations: 91.81 kB / 471 MB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004115/0.4313, allocations: 0.5446 MB / 471.5 MB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/0.4315, allocations: 28.06 kB / 471.6 MB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.395e-05/0.4316, allocations: 12 kB / 471.6 MB, free: 8.992 MB / 398.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.0001368/0.4317, allocations: 137.8 kB / 471.7 MB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.28e-05/0.4318, allocations: 15.91 kB / 471.7 MB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002227/0.4341, allocations: 1.457 MB / 473.2 MB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.502e-05/0.4341, allocations: 23.97 kB / 473.2 MB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4341, allocations: 0 / 473.2 MB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.4341, allocations: 3.984 kB / 473.2 MB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/0.4371, allocations: 1.979 MB / 475.2 MB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.4371, allocations: 0 / 475.2 MB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000429/0.4376, allocations: 83.86 kB / 475.3 MB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00029/0.4379, allocations: 69.12 kB / 475.3 MB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/0.4379, allocations: 15.98 kB / 475.3 MB, free: 5.113 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004067/0.4384, allocations: 0.5928 MB / 475.9 MB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4384, allocations: 0 / 475.9 MB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/0.4407, allocations: 1.691 MB / 477.6 MB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.436e-05/0.4408, allocations: 128.7 kB / 477.8 MB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.53e-05/0.4409, allocations: 12 kB / 477.8 MB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003437/0.4412, allocations: 23.92 kB / 477.8 MB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.773e-05/0.4413, allocations: 31.95 kB / 477.8 MB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.042e-05/0.4413, allocations: 15.98 kB / 477.8 MB, free: 2.551 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.797e-05/0.4414, allocations: 91.27 kB / 477.9 MB, free: 2.461 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4414, allocations: 0 / 477.9 MB, free: 2.461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003192/0.4446, allocations: 0.9669 MB / 478.9 MB, free: 1.492 MB / 398.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.007209/0.4518, allocations: 3.295 MB / 482.2 MB, free: 14.15 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.4533, allocations: 0.605 MB / 482.8 MB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.4533, allocations: 4 kB / 482.8 MB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008542/0.4541, allocations: 0.505 MB / 483.3 MB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000768/0.4549, allocations: 83.42 kB / 483.4 MB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006996/0.4619, allocations: 3.909 MB / 487.3 MB, free: 8.891 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.4624, allocations: 0.8217 MB / 488.1 MB, free: 8.043 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003698/0.4628, allocations: 137.7 kB / 488.2 MB, free: 7.906 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.463, allocations: 135.4 kB / 488.4 MB, free: 7.773 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.463, allocations: 0 / 488.4 MB, free: 7.773 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08007/0.5431, allocations: 40.52 MB / 0.5165 GB, free: 15.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/14.07, allocations: 0 / 0.5165 GB, free: 15.12 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches