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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001622/0.001622, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001792/0.001792, allocations: 212.4 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 230.5 MB / 257.4 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 63.89 kB / 377.7 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2393, allocations: 53.41 MB / 431.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.0171/0.2564, allocations: 11.92 MB / 443 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01422/0.2706, allocations: 10.13 MB / 453.2 MB, free: 340 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.2707, allocations: 0 / 453.2 MB, free: 340 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003105/0.271, allocations: 63.58 kB / 453.2 MB, free: 276 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003385/0.2714, allocations: 87.44 kB / 453.3 MB, free: 188 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01373/0.2851, allocations: 5.035 MB / 458.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004036/0.2855, allocations: 234.9 kB / 458.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.497e-05/0.2856, allocations: 5.641 kB / 458.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005118/0.2861, allocations: 191.3 kB / 458.8 MB, free: 10.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.2862, allocations: 75.67 kB / 458.9 MB, free: 10.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.039e-05/0.2862, allocations: 8 kB / 458.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01363/0.2999, allocations: 6.685 MB / 465.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.3, allocations: 31.89 kB / 465.6 MB, free: 3.918 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.3001, allocations: 59.73 kB / 465.6 MB, free: 3.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009303/0.3094, allocations: 3.882 MB / 469.5 MB, free: 15.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3094, allocations: 0 / 469.5 MB, free: 15.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3094, allocations: 0 / 469.5 MB, free: 15.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.3094, allocations: 0 / 469.5 MB, free: 15.97 MB / 382.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.004634/0.314, allocations: 1.091 MB / 470.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3141, allocations: 11.98 kB / 470.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.918e-05/0.3142, allocations: 50.73 kB / 470.7 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004838/0.3146, allocations: 48.84 kB / 470.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.3149, allocations: 166.3 kB / 470.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.315, allocations: 12.66 kB / 470.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.43e-05/0.315, allocations: 24.12 kB / 470.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.3164, allocations: 436.5 kB / 471.3 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.3164, allocations: 0 / 471.3 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.3164, allocations: 8 kB / 471.3 MB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.3165, allocations: 8 kB / 471.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.3179, allocations: 351.5 kB / 471.7 MB, free: 13.68 MB / 382.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.001484/0.3194, allocations: 1.028 MB / 472.7 MB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009428/0.3203, allocations: 279.7 kB / 473 MB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002941/0.3206, allocations: 118.8 kB / 473.1 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09654/0.4172, allocations: 26.1 MB / 499.2 MB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.4172, allocations: 34.56 kB / 499.2 MB, free: 1.977 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.893e-06/0.4172, allocations: 0 / 499.2 MB, free: 1.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.007148/0.4244, allocations: 1.504 MB / 0.489 GB, free: 448 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.384e-05/0.4244, allocations: 114.8 kB / 0.4891 GB, free: 308 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.4246, allocations: 125.7 kB / 0.4892 GB, free: 172 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/0.4246, allocations: 29.7 kB / 0.4893 GB, free: 136 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.191e-05/0.4247, allocations: 104.6 kB / 0.4894 GB, free: 28 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.4248, allocations: 127.1 kB / 0.4895 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.4249, allocations: 69.69 kB / 0.4896 GB, free: 15.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.4251, allocations: 338.6 kB / 0.4899 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004366/0.4255, allocations: 131.7 kB / 0.49 GB, free: 15.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004515/0.426, allocations: 198.8 kB / 0.4902 GB, free: 15.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009056/0.4269, allocations: 346.6 kB / 0.4905 GB, free: 14.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.4269, allocations: 4 kB / 0.4905 GB, free: 14.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001173/0.428, allocations: 430 kB / 0.4909 GB, free: 14.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.4281, allocations: 4 kB / 0.4909 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.4281, allocations: 4 kB / 0.491 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002554/0.4283, allocations: 28.84 kB / 0.491 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005012/0.4288, allocations: 91.88 kB / 0.4911 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004487/0.4293, allocations: 0.5525 MB / 0.4916 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003124/0.4296, allocations: 24.08 kB / 0.4916 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/0.4296, allocations: 15.98 kB / 0.4916 GB, free: 13.6 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.0001743/0.4298, allocations: 133.8 kB / 0.4918 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.916e-05/0.4299, allocations: 15.91 kB / 0.4918 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002493/0.4324, allocations: 1.5 MB / 0.4933 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.843e-05/0.4324, allocations: 23.97 kB / 0.4933 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.4324, allocations: 3.984 kB / 0.4933 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.423e-06/0.4324, allocations: 3.938 kB / 0.4933 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/0.4358, allocations: 1.974 MB / 0.4952 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.4358, allocations: 4 kB / 0.4952 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004644/0.4362, allocations: 75.88 kB / 0.4953 GB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003275/0.4366, allocations: 80.86 kB / 0.4954 GB, free: 9.703 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.052e-05/0.4366, allocations: 16 kB / 0.4954 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004747/0.4371, allocations: 0.5875 MB / 0.496 GB, free: 9.074 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4371, allocations: 0 / 0.496 GB, free: 9.074 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002515/0.4396, allocations: 1.741 MB / 0.4977 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.721e-05/0.4397, allocations: 55.47 kB / 0.4977 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/0.4397, allocations: 19.97 kB / 0.4977 GB, free: 7.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003564/0.4401, allocations: 23.98 kB / 0.4977 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.711e-05/0.4402, allocations: 35.88 kB / 0.4978 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.522e-05/0.4402, allocations: 15.98 kB / 0.4978 GB, free: 7.156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.166e-05/0.4403, allocations: 87.28 kB / 0.4979 GB, free: 7.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4403, allocations: 0 / 0.4979 GB, free: 7.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002823/0.4431, allocations: 0.9709 MB / 0.4988 GB, free: 6.098 MB / 414.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.007685/0.4508, allocations: 3.334 MB / 0.5021 GB, free: 2.715 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.4523, allocations: 0.6005 MB / 0.5027 GB, free: 2.113 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4523, allocations: 0 / 0.5027 GB, free: 2.113 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008574/0.4532, allocations: 477.9 kB / 0.5031 GB, free: 1.648 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000778/0.454, allocations: 84.06 kB / 0.5032 GB, free: 1.566 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007784/0.4618, allocations: 3.95 MB / 0.5071 GB, free: 13.46 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.462, allocations: 212.3 kB / 0.5073 GB, free: 13.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003881/0.4624, allocations: 142 kB / 0.5074 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002534/0.4627, allocations: 127.4 kB / 0.5075 GB, free: 12.96 MB / 430.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4627, allocations: 4 kB / 0.5075 GB, free: 12.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2791/0.7418, allocations: 41.35 MB / 0.5479 GB, free: 85.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.41, allocations: 1.172 kB / 0.5479 GB, free: 85.62 MB / 446.1 MB " [Timeout remaining time 644] (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 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.261258385144174]