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.0008366/0.0008367, allocations: 95.84 kB / 17.35 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009685/0.0009686, allocations: 211.4 kB / 18.29 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 227.7 MB / 246.8 MB, free: 9.473 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001869/0.0001869, allocations: 4 kB / 307.8 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07629/0.07649, allocations: 51.52 MB / 359.3 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.1549/0.2314, allocations: 13.34 MB / 372.7 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.2423, allocations: 12.28 MB / 385 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.521e-05/0.2424, allocations: 1.125 kB / 385 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002672/0.2427, allocations: 66.77 kB / 385 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002554/0.2429, allocations: 79.08 kB / 385.1 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01008/0.253, allocations: 4.017 MB / 389.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003267/0.2534, allocations: 268.7 kB / 389.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.496e-05/0.2534, allocations: 15.12 kB / 389.4 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003422/0.2538, allocations: 185.4 kB / 389.6 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.2539, allocations: 70.94 kB / 389.7 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.2539, allocations: 5.375 kB / 389.7 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01143/0.2653, allocations: 6.915 MB / 396.6 MB, free: 2.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.603e-05/0.2654, allocations: 22.56 kB / 396.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.2655, allocations: 97.36 kB / 396.7 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00538/0.2709, allocations: 3.881 MB / 400.6 MB, free: 52 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2709, allocations: 0 / 400.6 MB, free: 52 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.271, allocations: 0 / 400.6 MB, free: 52 kB / 302.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.271, allocations: 0 / 400.6 MB, free: 52 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.003998/0.275, allocations: 1.107 MB / 401.7 MB, free: 15.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.275, allocations: 7.969 kB / 401.7 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.675e-05/0.2751, allocations: 48.55 kB / 401.7 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00041/0.2755, allocations: 57.89 kB / 401.8 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.2757, allocations: 219.4 kB / 402 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.2757, allocations: 14.28 kB / 402 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.541e-05/0.2758, allocations: 21.28 kB / 402 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.2769, allocations: 391.9 kB / 402.4 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.277, allocations: 0 / 402.4 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.277, allocations: 6.5 kB / 402.4 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.277, allocations: 6.594 kB / 402.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.2783, allocations: 373.6 kB / 402.8 MB, free: 14.49 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.001132/0.2795, allocations: 1.186 MB / 404 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007563/0.2802, allocations: 293.5 kB / 404.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.2805, allocations: 118 kB / 404.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09104/0.3715, allocations: 53.01 MB / 457.4 MB, free: 2.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.3716, allocations: 46.5 kB / 457.4 MB, free: 2.105 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.753e-06/0.3716, allocations: 0 / 457.4 MB, free: 2.105 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006461/0.3781, allocations: 1.621 MB / 459.1 MB, free: 440 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.3781, allocations: 106.8 kB / 459.2 MB, free: 308 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.055e-05/0.3782, allocations: 117.8 kB / 459.3 MB, free: 180 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.3783, allocations: 33.7 kB / 459.3 MB, free: 140 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.938e-05/0.3783, allocations: 104.5 kB / 459.4 MB, free: 32 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.165e-05/0.3784, allocations: 114.4 kB / 459.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.545e-05/0.3785, allocations: 33.7 kB / 459.6 MB, free: 15.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.965e-05/0.3786, allocations: 330.8 kB / 459.9 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003701/0.379, allocations: 139.9 kB / 460 MB, free: 15.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003886/0.3794, allocations: 202.5 kB / 460.2 MB, free: 15.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007524/0.3801, allocations: 358.5 kB / 460.6 MB, free: 14.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3801, allocations: 4 kB / 460.6 MB, free: 14.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001002/0.3811, allocations: 437.9 kB / 461 MB, free: 14.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.3812, allocations: 4 kB / 461 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.3812, allocations: 0 / 461 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002277/0.3814, allocations: 48.23 kB / 461.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00043/0.3819, allocations: 91.88 kB / 461.1 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003137/0.3822, allocations: 0.5484 MB / 461.7 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.3825, allocations: 32.02 kB / 461.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/0.3825, allocations: 16 kB / 461.7 MB, free: 13.61 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.0001283/0.3826, allocations: 146.2 kB / 461.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.689e-05/0.3827, allocations: 12.28 kB / 461.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.3847, allocations: 1.462 MB / 463.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-05/0.3847, allocations: 19.97 kB / 463.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3847, allocations: 0 / 463.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3847, allocations: 7.984 kB / 463.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00261/0.3873, allocations: 1.982 MB / 465.4 MB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3874, allocations: 0 / 465.4 MB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000412/0.3878, allocations: 91.86 kB / 465.5 MB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003164/0.3881, allocations: 76.81 kB / 465.5 MB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/0.3881, allocations: 12.62 kB / 465.5 MB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002971/0.3885, allocations: 0.5914 MB / 466.1 MB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3885, allocations: 3.938 kB / 466.1 MB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.3905, allocations: 1.693 MB / 467.8 MB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.45e-05/0.3905, allocations: 132.4 kB / 468 MB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.482e-05/0.3906, allocations: 16.03 kB / 468 MB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003504/0.391, allocations: 27.86 kB / 468 MB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.427e-05/0.391, allocations: 39.89 kB / 468 MB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/0.3911, allocations: 19.98 kB / 468.1 MB, free: 7.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.658e-05/0.3911, allocations: 87.28 kB / 468.1 MB, free: 7.027 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3911, allocations: 0 / 468.1 MB, free: 7.027 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002973/0.3941, allocations: 0.9605 MB / 469.1 MB, free: 6.066 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.00716/0.4013, allocations: 3.289 MB / 472.4 MB, free: 2.734 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.4024, allocations: 0.6121 MB / 473 MB, free: 2.121 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4024, allocations: 3.938 kB / 473 MB, free: 2.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000714/0.4031, allocations: 0.5123 MB / 473.5 MB, free: 1.605 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007262/0.4039, allocations: 80.7 kB / 473.6 MB, free: 1.527 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006569/0.4105, allocations: 4.169 MB / 477.8 MB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.4108, allocations: 0.8217 MB / 478.6 MB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003648/0.4111, allocations: 145.1 kB / 478.7 MB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.4113, allocations: 127.4 kB / 478.9 MB, free: 12.09 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4113, allocations: 0 / 478.9 MB, free: 12.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05645/0.4678, allocations: 40.04 MB / 0.5067 GB, free: 4.145 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/0.468, allocations: 203.3 kB / 0.5069 GB, free: 3.891 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.541/4.009, allocations: 0 / 0.5069 GB, free: 3.891 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