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.001508/0.001508, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001725/0.001725, allocations: 207.4 kB / 24.53 MB, free: 4.07 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.371/1.371, allocations: 230.5 MB / 258.2 MB, free: 8.039 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 67.89 kB / 378.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2321, allocations: 53.41 MB / 431.9 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01662/0.2487, allocations: 13.13 MB / 445.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01344/0.2621, allocations: 11.62 MB / 456.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.692e-05/0.2622, allocations: 0 / 456.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002995/0.2625, allocations: 75.53 kB / 456.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002851/0.2628, allocations: 87.36 kB / 456.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01219/0.275, allocations: 5.097 MB / 462 MB, free: 8.609 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.2754, allocations: 231 kB / 462.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.346e-05/0.2754, allocations: 5.641 kB / 462.2 MB, free: 8.371 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004276/0.2759, allocations: 199.3 kB / 462.4 MB, free: 8.176 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.276, allocations: 83.69 kB / 462.5 MB, free: 8.094 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.276, allocations: 11.94 kB / 462.5 MB, free: 8.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0124/0.2884, allocations: 7.009 MB / 469.5 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.347e-05/0.2885, allocations: 31.89 kB / 469.5 MB, free: 1.035 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.2886, allocations: 67.73 kB / 469.6 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008039/0.2966, allocations: 3.886 MB / 473.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2966, allocations: 0 / 473.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2966, allocations: 0 / 473.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.2967, allocations: 0 / 473.5 MB, free: 13.07 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.004667/0.3013, allocations: 1.103 MB / 474.6 MB, free: 11.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.3014, allocations: 8.031 kB / 474.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.079e-05/0.3014, allocations: 4.469 kB / 474.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.328e-05/0.3015, allocations: 46.73 kB / 474.6 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004774/0.3019, allocations: 48.84 kB / 474.7 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.3022, allocations: 170.2 kB / 474.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.3022, allocations: 20.31 kB / 474.9 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.151e-05/0.3023, allocations: 15.94 kB / 474.9 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.3036, allocations: 381.2 kB / 475.2 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.3036, allocations: 4 kB / 475.2 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.3036, allocations: 4 kB / 475.3 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3036, allocations: 4 kB / 475.3 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001445/0.3051, allocations: 355.5 kB / 475.6 MB, free: 10.84 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.00143/0.3065, allocations: 1.156 MB / 476.8 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008566/0.3074, allocations: 283.3 kB / 477 MB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002889/0.3077, allocations: 110.8 kB / 477.1 MB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09057/0.3982, allocations: 26.01 MB / 0.4914 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.3983, allocations: 30.56 kB / 0.4914 GB, free: 15.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.174e-06/0.3983, allocations: 0 / 0.4914 GB, free: 15.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006817/0.4051, allocations: 1.504 MB / 0.4929 GB, free: 13.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.4051, allocations: 110.8 kB / 0.493 GB, free: 13.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.4053, allocations: 121.8 kB / 0.4931 GB, free: 13.28 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.926e-05/0.4053, allocations: 33.7 kB / 0.4931 GB, free: 13.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.768e-05/0.4054, allocations: 108.6 kB / 0.4932 GB, free: 13.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.4055, allocations: 122.9 kB / 0.4933 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.4056, allocations: 73.67 kB / 0.4934 GB, free: 12.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.4057, allocations: 334.8 kB / 0.4937 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003891/0.4061, allocations: 131.7 kB / 0.4939 GB, free: 12.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/0.4065, allocations: 194.8 kB / 0.494 GB, free: 12.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008219/0.4074, allocations: 346.6 kB / 0.4944 GB, free: 11.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4074, allocations: 0 / 0.4944 GB, free: 11.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001117/0.4085, allocations: 434 kB / 0.4948 GB, free: 11.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.4085, allocations: 8.219 kB / 0.4948 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.4085, allocations: 4 kB / 0.4948 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002245/0.4087, allocations: 28.84 kB / 0.4948 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/0.4092, allocations: 91.88 kB / 0.4949 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004238/0.4096, allocations: 0.5562 MB / 0.4955 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.4099, allocations: 15.98 kB / 0.4955 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.019e-05/0.4099, allocations: 19.98 kB / 0.4955 GB, free: 10.7 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.0001546/0.4101, allocations: 129.8 kB / 0.4956 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.4102, allocations: 19.91 kB / 0.4956 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002227/0.4124, allocations: 1.5 MB / 0.4971 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.586e-05/0.4124, allocations: 27.95 kB / 0.4971 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4124, allocations: 0 / 0.4971 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.4124, allocations: 0 / 0.4971 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003081/0.4155, allocations: 2.005 MB / 0.4991 GB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.4155, allocations: 4 kB / 0.4991 GB, free: 6.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004359/0.416, allocations: 83.86 kB / 0.4992 GB, free: 6.855 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003277/0.4163, allocations: 69.3 kB / 0.4992 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.905e-05/0.4163, allocations: 19.98 kB / 0.4992 GB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004061/0.4167, allocations: 0.5914 MB / 0.4998 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4167, allocations: 3.938 kB / 0.4998 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/0.4192, allocations: 1.741 MB / 0.5015 GB, free: 4.371 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.448e-05/0.4192, allocations: 63.41 kB / 0.5016 GB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.154e-05/0.4193, allocations: 11.94 kB / 0.5016 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.4196, allocations: 24.03 kB / 0.5016 GB, free: 4.273 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.577e-05/0.4197, allocations: 35.94 kB / 0.5017 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.268e-05/0.4197, allocations: 11.98 kB / 0.5017 GB, free: 4.227 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.299e-05/0.4198, allocations: 91.27 kB / 0.5018 GB, free: 4.137 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4198, allocations: 0 / 0.5018 GB, free: 4.137 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002591/0.4224, allocations: 0.9708 MB / 0.5027 GB, free: 3.164 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.007342/0.4297, allocations: 3.335 MB / 0.506 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.4313, allocations: 0.6005 MB / 0.5066 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.4313, allocations: 3.938 kB / 0.5066 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008625/0.4321, allocations: 473.3 kB / 0.507 GB, free: 14.72 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007831/0.4329, allocations: 87.38 kB / 0.5071 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007531/0.4404, allocations: 3.953 MB / 0.5109 GB, free: 10.53 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000457/0.4409, allocations: 0.8216 MB / 0.5118 GB, free: 9.676 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003584/0.4413, allocations: 129.8 kB / 0.5119 GB, free: 9.551 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002368/0.4415, allocations: 131.4 kB / 0.512 GB, free: 9.422 MB / 430.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4415, allocations: 0 / 0.512 GB, free: 9.422 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2605/0.702, allocations: 41.42 MB / 0.5524 GB, free: 83.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.37, allocations: 10.45 kB / 0.5525 GB, free: 83.59 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.34356181800831]